| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
| |
function. Doing this conveniently requires moving the word wrapping to
use a StringRef which seems generally an improvement. There is a lot
that could be simplified in the word wrapping by using StringRef that
I haven't looked at yet...
llvm-svn: 140524
|
| |
|
|
|
|
| |
functionality changed.
llvm-svn: 140523
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
a "loaded" location of the precompiled preamble.
Instead, handle specially locations of preprocessed entities:
-When looking up for preprocessed entities, map main file locations inside the
preamble range to a preamble loaded location.
-When getting the source range of a preprocessing cursor, map preamble loaded
locations back to main file locations.
Fixes rdar://10175093 & http://llvm.org/PR10999
llvm-svn: 140519
|
| |
|
|
|
|
| |
Also remove an obsolete utostr call.
llvm-svn: 140511
|
| |
|
|
|
|
|
|
|
|
|
|
| |
characters. I could find no newline character in a diagnostic message,
and adding an assert to this code never fires in the testsuite.
I think this code is essentially dead, and was previously used for
a different purpose. If I just don't understand how it is we can end up
with a newline here please let me know (with a test case?) and I'll
revert.
llvm-svn: 140497
|
| |
|
|
|
|
|
| |
printing routines, clean up its doxyments and switch it to a camelCase
name as well. No functionality changed here.
llvm-svn: 140496
|
| |
|
|
|
|
| |
style, and add doxyments.
llvm-svn: 140495
|
| |
|
|
|
|
| |
use the ostream interface and avoid lots of temporary strings.
llvm-svn: 140494
|
| |
|
|
| |
llvm-svn: 140493
|
| |
|
|
| |
llvm-svn: 140491
|
| |
|
|
|
|
| |
This needs to be cleaned up to better use the ostream object, WIP.
llvm-svn: 140490
|
| |
|
|
| |
llvm-svn: 140489
|
| |
|
|
|
|
|
| |
I'm planning to switch a bunch of these over to use a raw_ostream
instead of += on a string object.
llvm-svn: 140488
|
| |
|
|
|
|
|
|
| |
and completely broken at that.
Sorry, must remember to stash rather than commit. =]
llvm-svn: 140487
|
| |
|
|
| |
llvm-svn: 140486
|
| |
|
|
| |
llvm-svn: 140485
|
| |
|
|
| |
llvm-svn: 140484
|
| |
|
|
| |
llvm-svn: 140483
|
| |
|
|
|
|
| |
function.
llvm-svn: 140481
|
| |
|
|
| |
llvm-svn: 140479
|
| |
|
|
| |
llvm-svn: 140478
|
| |
|
|
|
|
| |
hoisting parts of the text diagnostic.
llvm-svn: 140477
|
| |
|
|
|
|
|
| |
to handle non-caret diagnostics as well in order to be fully useful in
libclang etc. Also sketch out some more of my plans on this refactoring.
llvm-svn: 140476
|
| |
|
|
|
|
|
|
| |
tracking the start and stop of macro expansion suppression. Also remove
the Columns variable which was just a convenience variable based on
DiagOpts. Instead we materialize it in the one piece of code that cared.
llvm-svn: 140475
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TextDiagnosticPrinter into the CaretDiagnostic class. Several
interesting results from this:
- This removes a significant per-diagnostic bit of state from the
CaretDiagnostic class, which should eventually allow us to re-use the
object.
- It removes a redundant recursive walk of the macro expansion stack
just to compute the depth. We don't need the depth until we're
unwinding anyways, so we can just mark when we reach it.
- It also paves the way for several simplifications we can do to how we
implement the suppression.
llvm-svn: 140474
|
| |
|
|
|
|
| |
emits a source snippet and caret line.
llvm-svn: 140467
|
| |
|
|
| |
llvm-svn: 140435
|
| |
|
|
| |
llvm-svn: 140369
|
| |
|
|
| |
llvm-svn: 140367
|
| |
|
|
| |
llvm-svn: 140365
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This moves the existing code for CPATH into the driver and adds the environment lookup and path splitting there.
The paths are then passed down to cc1 with -I options (CPATH), added after the normal user-specified include dirs.
Language specific paths are passed via -LANG-isystem and the actual filtering is performed in the frontend.
I tried to match GCC's behavior as close as possible
Fixes PR8971.
llvm-svn: 140341
|
| |
|
|
|
|
|
|
|
|
| |
OpenCL is different from AltiVec in the way it supports vector literals. OpenCL
is strict with regards to semantic checks. For example, implicit conversions
and explicit casts between vectors of different types are disallowed.
Fixes PR10975. Submitted by: Anton Lokhmotov <Anton.lokhmotov@gmail.com>
llvm-svn: 140270
|
| |
|
|
| |
llvm-svn: 140155
|
| |
|
|
|
|
|
|
|
|
| |
PreprocessingRecord's getPreprocessedEntitiesInRange.
Also remove all the stuff that were added in ASTUnit that are unnecessary now
that we do a binary search for preprocessed entities and deserialize only
what is necessary.
llvm-svn: 140063
|
| |
|
|
|
|
| |
return iterators for local, non-loaded, preprocessed entities.
llvm-svn: 140062
|
| |
|
|
|
|
|
| |
check whether the requested location points inside the precompiled preamble,
in which case the returned source location will be a "loaded" one.
llvm-svn: 140060
|
| |
|
|
|
|
| |
It already works (and is useful with) macro locs as well.
llvm-svn: 140057
|
| |
|
|
|
|
| |
header files have the same name as clang's builtins, this creates clash.
llvm-svn: 140009
|
| |
|
|
|
|
|
|
| |
that this flag must be used only for Microsoft extensions and not emulation; to avoid confusion with the new LangOptions::MicrosoftMode flag.
Many of the code now under LangOptions::MicrosoftExt will eventually be moved under the LangOptions::MicrosoftMode flag.
llvm-svn: 139987
|
| |
|
|
|
|
|
|
|
|
|
|
| |
compiler switch: -fms-compatility.
Microsoft specific tweaking will now fall into 2 categories:
- fms-extension: Microsoft specific extensions that should never change the meaning of an otherwise well formed code. Currently map to LangOptions::Microsoft. (To be clearer, I am planning to change the name to LangOptions::MicrosoftExt).
- fms-compatibility: Really a MSVC emulation mode. Map to LangOptions::MicrosoftMode. Can change the meaning of an otherwise standard conformant program.
llvm-svn: 139978
|
| |
|
|
|
|
|
| |
#include or #import direcctives of framework headers into module
imports of the corresponding framework module.
llvm-svn: 139860
|
| |
|
|
| |
llvm-svn: 139837
|
| |
|
|
|
|
| |
graceful than running out of stack space.
llvm-svn: 139833
|
| |
|
|
|
|
|
| |
used back when we had an -import-module command-line option, but it's
no longer used (or useful).
llvm-svn: 139829
|
| |
|
|
| |
llvm-svn: 139827
|
| |
|
|
|
|
| |
the newly-created ASTReader. This makes sure that CodeGen sees the declarations it is interested in
llvm-svn: 139824
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
-Use an array of offsets for all preprocessed entities
-Get rid of the separate array of offsets for just macro definitions;
for references to macro definitions use an index inside the preprocessed
entities array.
-Deserialize each preprocessed entity lazily, at first request; not in bulk.
Paves the way for binary searching of preprocessed entities that will offer
efficiency and will simplify things on the libclang side a lot.
llvm-svn: 139809
|
| |
|
|
| |
llvm-svn: 139750
|
| |
|
|
| |
llvm-svn: 139696
|
| |
|
|
|
|
| |
options is the same as the module hash before stripping those options.
llvm-svn: 139663
|