dextool.plugin.mutate.backend.analyze

cpptooling.analyzer.clang

Modules

ast
module dextool.plugin.mutate.backend.analyze.ast
extensions
module dextool.plugin.mutate.backend.analyze.extensions
id_factory
module dextool.plugin.mutate.backend.analyze.id_factory
pass_clang
module dextool.plugin.mutate.backend.analyze.pass_clang
pass_coverage
module dextool.plugin.mutate.backend.analyze.pass_coverage
pass_filter
module dextool.plugin.mutate.backend.analyze.pass_filter
pass_mutant
module dextool.plugin.mutate.backend.analyze.pass_mutant
pass_schemata
module dextool.plugin.mutate.backend.analyze.pass_schemata
utility
module dextool.plugin.mutate.backend.analyze.utility

Members

Aliases

log
alias log = colorlog.log!"analyze"
Undocumented in source.

Classes

TestFileResult
class TestFileResult
Undocumented in source.
TokenStreamImpl
class TokenStreamImpl

Stream of tokens excluding comment tokens.

Functions

analyzeActor
void analyzeActor(Mutation.Kind[] kinds, ParsedCompileCommand fileToAnalyze, ValidateLoc vloc, FilesysIO fio, AnalyzeConfig conf, Tid storeActor)

Start an analyze of a file

dependencyAnalyze
bool[Path] dependencyAnalyze(AbsolutePath dbPath, FilesysIO fio)
isFileSupported
bool isFileSupported(FilesysIO fio, AbsolutePath p)

Only utf-8 files are supported

isPathInsideAnyRoot
bool isPathInsideAnyRoot(AbsolutePath[] roots, AbsolutePath f)
printLostMarkings
void printLostMarkings(MarkedMutant[] lostMutants)

Prints a marked mutant that has become lost due to rerun of analyze

runAnalyzer
ExitStatusType runAnalyzer(AbsolutePath dbPath, MutationKind[] userKinds, ConfigAnalyze analyzeConf, ConfigCompiler compilerConf, ConfigSchema schemaConf, ConfigCoverage covConf, ParsedCompileCommandRange frange, ValidateLoc valLoc, FilesysIO fio)

Analyze the files in frange for mutations.

storeActor
void storeActor(AbsolutePath dbPath, FilesysIO fioShared, StoreConfig confShared, Path[] rootFiles)

Store the result of the analyze.

testPathActor
void testPathActor(AbsolutePath[] userPaths, GlobFilter matcher, FilesysIO fio, Tid storeActor)
Undocumented in source. Be warned that the author may not have intended to support it.
toAbsolutePath
Optional!AbsolutePath toAbsolutePath(Path file, AbsolutePath workDir, ParseFlags.Include[] includes, SystemIncludePath[] systemIncludes)

Convert to an absolute path by finding the first match among the compiler flags

updateMarkedMutants
void updateMarkedMutants(Database db)

Update the connection between the marked mutants and their mutation status id and mutation id.

Structs

Analyze
struct Analyze

Analyze a file for mutants.

AnalyzeCntMsg
struct AnalyzeCntMsg

Number of analyze tasks that has been spawned that the storeActor should wait for.

AnalyzeConfig
struct AnalyzeConfig
Undocumented in source.
FileFilter
struct FileFilter

Filter function for files. Either all or those in stdin.

StoreConfig
struct StoreConfig
Undocumented in source.
StoreDoneMsg
struct StoreDoneMsg

The main thread is waiting for storeActor to send this message.

Meta

License

MPL-2

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

#SPC-analyzer

TODO cache the checksums. They are *heavy*.