| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
CompilerInvocation from command-line args.
llvm-svn: 128848
|
|
|
|
| |
llvm-svn: 128606
|
|
|
|
|
|
| |
- Please never ever ever ever write a tool that sniffs this.
llvm-svn: 128599
|
|
|
|
| |
llvm-svn: 128433
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
required modifying a few tests that specifically use note include stacks
to check the source manager's view of include stacks. I've simply added
the flag to these tests for now, they may have to be more substantially
changed if we decide to remove support for note include stacks
altogether.
Also, add a test for include stacks on notes that was supposed to go in
with the previous commit.
llvm-svn: 128390
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These stacks are often less important than those on primary diagnostics.
As the number of notes grows, this becomes increasingly important. The
include stack printing is clever and doesn't print stacks for adjacent
diagnostics from the same file, but when a note is in between a sequence
of errors in a header file, and the notes all refer to some other file,
we end up getting a worst-case ping-pong of include stacks that take up
a great deal of vertical space.
Still, for now, the default behavior isn't changed. We can evaluate user
feedback with the flag.
Patch by Richard Trieu, a couple of style tweaks from me.
llvm-svn: 128371
|
|
|
|
| |
llvm-svn: 128142
|
|
|
|
| |
llvm-svn: 128138
|
|
|
|
|
|
|
|
| |
line options, instead of leveraging the blanket -mllvm option.
- This allows using the frontend itself without requiring the backend have
those options available (i.e., if the target wasn't built).
llvm-svn: 128087
|
|
|
|
|
|
|
|
| |
during a Sema crash (we have just a handful of leaks left)
and to use the simplified cleanup registration API.
llvm-svn: 128059
|
|
|
|
|
|
| |
really make any sense in this environment.
llvm-svn: 128014
|
|
|
|
|
|
|
|
|
|
| |
recovery. This was a huge resource "root" during crashes.
This change requires making a bunch of fundamental Clang structures (optionally) reference counted to allow correct
ownership semantics of these objects (e.g., ASTContext) to play out between an active ASTUnit and CompilerInstance
object.
llvm-svn: 128011
|
|
|
|
|
|
| |
CompilerInstance objects.
llvm-svn: 128009
|
|
|
|
| |
llvm-svn: 127933
|
|
|
|
|
|
|
|
|
| |
add support for the OpenCL __private, __local, __constant and
__global address spaces, as well as the __read_only, _read_write and
__write_only image access specifiers. Patch originally by ARM;
language-specific address space support by myself.
llvm-svn: 127915
|
|
|
|
|
|
| |
comments.
llvm-svn: 127910
|
|
|
|
|
|
| |
determine if any files in the preamble have changed.
llvm-svn: 127894
|
|
|
|
|
|
| |
clang_codeCompleteAt.
llvm-svn: 127890
|
|
|
|
|
|
|
|
| |
Issue this as an IR-gen error; it's not really worthwhile doing this
"right", i.e. in Sema, because IR gen knows a lot of tricks beyond
what the constant evaluator knows.
llvm-svn: 127854
|
|
|
|
|
|
| |
ASTUnit::LoadFromCommandLine() and ASTUnit::LoadFromCompilerInvocation().
llvm-svn: 127851
|
|
|
|
| |
llvm-svn: 127746
|
|
|
|
|
|
| |
x86_64-w64-mingw32.
llvm-svn: 127652
|
|
|
|
| |
llvm-svn: 127582
|
|
|
|
| |
llvm-svn: 127573
|
|
|
|
|
|
|
|
|
|
| |
to chained PCHs in memory
without having to use multiple runs and intermediate files.
Intended for testing & debugging of chained PCH.
llvm-svn: 127339
|
|
|
|
|
|
|
|
|
|
|
| |
the SourceManager
should report the original file name for contents of files that were overriden by other files,
otherwise it should report the name of the new file. Default is true.
Also add similar field in PreprocessorOptions and pass similar parameter in ASTUnit::LoadFromCommandLine.
llvm-svn: 127289
|
|
|
|
|
|
| |
options.
llvm-svn: 127183
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
too low-level to actually be useful but is just interesting enough for
people to try to use it (which won't actually work beyond toy examples).
To bring back the AST printer, it needs to be:
- Complete, covering all of C/C++/Objective-C
- Documented, with appropriate Schema against which we can validate
the output
- Designed for C/C++/Objective-C, not Clang's specific ASTs
- Stable across Clang versions
- Well-tested
llvm-svn: 127141
|
|
|
|
| |
llvm-svn: 127133
|
|
|
|
| |
llvm-svn: 127124
|
|
|
|
|
|
|
|
|
| |
the file contents with it.
Allow remapping a file by specifying another filename whose contents should be loaded if the original
file gets loaded. This allows to override files without having to create & load buffers in advance.
llvm-svn: 127052
|
|
|
|
|
|
| |
ASTUnit should delete the remapped buffers.
llvm-svn: 127051
|
|
|
|
| |
llvm-svn: 126884
|
|
|
|
|
|
|
|
| |
path. This avoids accidentally including the wrong headers.
Patch by Dimitry Andric!
llvm-svn: 126761
|
|
|
|
|
|
| |
one.
llvm-svn: 126756
|
|
|
|
|
|
| |
misnomer award.
llvm-svn: 126676
|
|
|
|
| |
llvm-svn: 126670
|
|
|
|
|
|
|
|
| |
The previous name was inaccurate as this token in fact appears at
the end of every preprocessing directive, not just macro definitions.
No functionality change, except for a diagnostic tweak.
llvm-svn: 126631
|
|
|
|
|
|
| |
Turns -analyzer-check-buffer-overflows into -analyzer-checker=core.experimental.Overflow
llvm-svn: 126609
|
|
|
|
| |
llvm-svn: 126608
|
|
|
|
| |
llvm-svn: 126607
|
|
|
|
| |
llvm-svn: 126497
|
|
|
|
|
|
|
|
|
|
| |
warning flag for a warning mapped to an error.
For example:
t.c:7:9: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]
llvm-svn: 126466
|
|
|
|
|
|
|
|
| |
static analyzer checkers.
This is pretty basic for now, eventually checkers should be grouped according to package, hidden checkers should be indicated etc.
llvm-svn: 126454
|
|
|
|
|
|
| |
have any checkers associated with it anymore.
llvm-svn: 126440
|
|
|
|
|
|
| |
-analyzer-checker=cocoa,unix
llvm-svn: 126372
|
|
|
|
|
|
|
| |
magic integer arithmetic and allows it to work with types larger
than 64 bits.
llvm-svn: 126365
|
|
|
|
|
|
|
|
| |
way it keeps track of namespaces. Previously, we would map from the
namespace alias to its underlying namespace when building a
nested-name-specifier, losing source information in the process.
llvm-svn: 126358
|
|
|
|
| |
llvm-svn: 126334
|
|
|
|
|
|
| |
CXXExceptions flag.
llvm-svn: 126300
|