| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Checkers will be defined in the tablegen file 'Checkers.td'.
-Apart from checkers, we can define checker "packages" that will contain a collection of checkers.
-Checkers can be enabled with -analyzer-checker=<name> and disabled with -analyzer-disable-checker=<name> e.g:
Enable checkers from 'cocoa' and 'corefoundation' packages except the self-initialization checker:
-analyzer-checker=cocoa -analyzer-checker=corefoundation -analyzer-disable-checker=cocoa.SelfInit
-Introduces CheckerManager and CheckerProvider. CheckerProviders get the set of checker names to enable/disable and
register them with the CheckerManager which will be the entry point for all checker-related functionality.
Currently only the self-initialization checker takes advantage of the new mechanism.
llvm-svn: 125503
|
| |
|
|
|
|
| |
FP_CONTRACT pragmas. Patch originally by ARM.
llvm-svn: 125475
|
| |
|
|
|
|
|
| |
Stmt::const_child_range, then make a bunch of places use them instead
of the individual iterator accessors.
llvm-svn: 125450
|
| |
|
|
|
|
|
| |
I also sorted the tools/driver dependencies since their order no
longer matters.
llvm-svn: 125417
|
| |
|
|
|
|
| |
indicate that we're loading from an offset, not an index, lest one be confused. No functionality change.
llvm-svn: 125394
|
| |
|
|
| |
llvm-svn: 125364
|
| |
|
|
| |
llvm-svn: 125282
|
| |
|
|
| |
llvm-svn: 125275
|
| |
|
|
|
|
|
| |
since the diagnostic client might poke at source locations that have
not yet been deserialized.
llvm-svn: 125204
|
| |
|
|
| |
llvm-svn: 125201
|
| |
|
|
|
|
|
|
|
|
|
|
| |
sqlite3 by 7-10% by recylcing "uninteresting" ExplodedNodes.
The optimization involves eagerly pruning ExplodedNodes from the ExplodedGraph that contain
practically no difference between the predecessor and successor nodes. For example, if
the state is different between a predecessor and a node, the node is left in. Only for
the 'environment' component of the state do we not care if the ExplodedNodes are different.
This paves the way for future optimizations where we can reclaim the environment objects.
llvm-svn: 125154
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
overridden via remapping. Thus, when we create a "virtual" file in the
file manager, we still stat() the real file that lives behind it so
that we can provide proper uniquing based on inodes. This helps keep
the file manager much more consistent.
To take advantage of this when reparsing files in libclang, we disable
the use of the stat() cache when reparsing or performing code
completion, since the stat() cache is very likely to be out of date in
this use case.
llvm-svn: 124971
|
| |
|
|
|
|
| |
abi.
llvm-svn: 124834
|
| |
|
|
| |
llvm-svn: 124825
|
| |
|
|
|
|
|
|
| |
the atomic writes option, since the intent is that this option be set for an
entire build, which may have any number of compiler instances writing to the
same output file.
llvm-svn: 124772
|
| |
|
|
|
|
| |
information to a file.
llvm-svn: 124750
|
| |
|
|
|
|
| |
ones outside the predefines buffer (which is what -H does).
llvm-svn: 124749
|
| |
|
|
| |
llvm-svn: 124736
|
| |
|
|
|
|
|
|
| |
callbacks class.
- Aside from being generally cleaner, this also allows -H to work correctly in
modes other than standard preprocessing (e.g., -c, -MM, etc.)
llvm-svn: 124723
|
| |
|
|
|
|
|
| |
the string copying goes through a single place that can have
associated state.
llvm-svn: 124698
|
| |
|
|
| |
llvm-svn: 124684
|
| |
|
|
|
|
|
|
|
|
|
|
| |
BumpPtrAllocator, rather than manually new/delete'ing them. This
optimization also allows us to avoid allocating memory for and copying
constant strings (e.g., "return", "class").
This also required embedding the priority and availability of results
within the code completion string, to avoid extra memory allocation
within libclang.
llvm-svn: 124673
|
| |
|
|
| |
llvm-svn: 124661
|
| |
|
|
|
|
| |
ensue.
llvm-svn: 124613
|
| |
|
|
|
|
| |
automatic behavior (which is undesirable in a multithreaded context).
llvm-svn: 124612
|
| |
|
|
| |
llvm-svn: 124551
|
| |
|
|
|
|
|
| |
TargetInfo::CreateTargetInfo() mangles the target options in a way
that is not idempotent. Fixes <rdar://problem/8807535>.
llvm-svn: 124382
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
invalid PresomedLoc, instead of just silencing it.
FileManager.cpp: Allow virtual files in nonexistent directories.
FileManager.cpp: Close FileDescriptor for virtual files that correspond to actual files.
FileManager.cpp: Enable virtual files to be created even for files that were flagged as NON_EXISTENT_FILE, e.g. by a prior (unsuccessful) addFile().
ASTReader.cpp: Read a PCH even if the original source files cannot be found.
Add a test for reading a PCH of a file that has been removed and diagnostics referencing that file.
llvm-svn: 124374
|
| |
|
|
|
|
|
|
| |
'-analyzer-check-objc-self-init' which by default
is enabled by the driver for '--analyze'.
llvm-svn: 124266
|
| |
|
|
| |
llvm-svn: 124235
|
| |
|
|
| |
llvm-svn: 124227
|
| |
|
|
|
|
| |
thousand other things which were (generally inadvertantly) relying on that.
llvm-svn: 123814
|
| |
|
|
|
|
| |
clang_createTranslationUnitFromSourceFile().
llvm-svn: 123793
|
| |
|
|
| |
llvm-svn: 123723
|
| |
|
|
| |
llvm-svn: 123150
|
| |
|
|
| |
llvm-svn: 122987
|
| |
|
|
|
|
| |
// rdar://8818375
llvm-svn: 122831
|
| |
|
|
| |
llvm-svn: 122552
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to allow us to explicitly control whether or
not Objective-C properties are default synthesized.
Currently this feature only works when using
the -fobjc-non-fragile-abi2 flag (so there is
no functionality change), but we can now turn
off this feature without turning off all the features
coupled with -fobjc-non-fragile-abi2.
llvm-svn: 122519
|
| |
|
|
|
|
|
| |
checker based on using raw (symbolic) byte offsets
from a base region.
llvm-svn: 122469
|
| |
|
|
| |
llvm-svn: 122394
|
| |
|
|
| |
llvm-svn: 122340
|
| |
|
|
| |
llvm-svn: 122339
|
| |
|
|
|
|
| |
Fix PR8832.
llvm-svn: 122311
|
| |
|
|
| |
llvm-svn: 122087
|
| |
|
|
| |
llvm-svn: 121956
|
| |
|
|
|
|
| |
second reparse.
llvm-svn: 121413
|
| |
|
|
| |
llvm-svn: 121378
|
| |
|
|
|
|
| |
BinaryTypeTraitExpr.
llvm-svn: 121298
|
| |
|
|
| |
llvm-svn: 121073
|