clang
clang copied to clipboard
Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
Add an option to enable on-the-fly parsing of needed ASTs during CTU analysis. The option CTUCompilationDatabase should be a path to a compilation database, which has all the necessary information...
In `isStructurallyEquivalent` (CXXMethodDecl) there is no check for the `isExplicitlyDefaulted` property. This can be different from `isDefaulted` (I think isDefaulted is true when the function is default but generated by...
Example code: ``` template void declToImport(T &t) { }; ``` After import the `=int` default value is missing.
without ctu, only on those files which changed
We should run all Clang tests plus the LLDB tests on our macOS machine too whenever there is a new commit on our dev branch (ctu-clang7 atm).
We should simplify all `Visit*Decl` functions where we iterate over the lookup results. The whole iteration could be part of a subroutine with a name like `FindEquivalentPreviousDecl`
Import starts with a lookup and then we create a new Decl. Then in certain cases (e.g. `CXXConstructorDecl`) we further import other Decls (base classes, members through `CXXConstructorDecl::inits()`) before connecting...
This code may not be needed below, we should write a unit test which exercises it. ``` const ArrayType *FoundArray = Importer.getToContext().getAsArrayType(FoundVar->getType()); const ArrayType *TArray = Importer.getToContext().getAsArrayType(D->getType()); if (FoundArray &&...