| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
but I was wrong.
llvm-svn: 97330
|
|
|
|
| |
llvm-svn: 97327
|
|
|
|
|
|
| |
returns a StringRef. Use it to simplify some repetitive code.
llvm-svn: 97322
|
|
|
|
| |
llvm-svn: 97253
|
|
|
|
|
|
| |
and cf_returns_not_retained.
llvm-svn: 96538
|
|
|
|
|
|
|
|
| |
guard macro is already defined for the first occurrence of the
header. If it is, the body will be skipped and not be properly
analyzed for the include guard optimization.
llvm-svn: 95972
|
|
|
|
|
|
| |
sure that the new token's range extends to the end of the old token. Assert that in AnnotateCachedTokens. Fixes PR6248.
llvm-svn: 95555
|
|
|
|
|
|
|
|
|
| |
doing so invalidates the file guard optimization and is not
in the spirit of "#if 0" because it is supposed to completely
skip everything, even if it isn't lexically valid. Patch by
Abramo Bagnara!
llvm-svn: 95253
|
|
|
|
|
|
| |
of '='.
llvm-svn: 94830
|
|
|
|
|
|
| |
less fragile than the old code.
llvm-svn: 94679
|
|
|
|
| |
llvm-svn: 94576
|
|
|
|
| |
llvm-svn: 94379
|
|
|
|
|
|
| |
Fixes radar 7562363.
llvm-svn: 94224
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
region of interest (if provided). Implement clang_getCursor() in terms
of this traversal rather than using the Index library; the unified
cursor visitor is more complete, and will be The Way Forward.
Minor other tweaks needed to make this work:
- Extend Preprocessor::getLocForEndOfToken() to accept an offset
from the end, making it easy to move to the last character in the
token (rather than just past the end of the token).
- In Lexer::MeasureTokenLength(), the length of whitespace is zero.
llvm-svn: 94200
|
|
|
|
|
|
|
| |
is #included with "foo.h" style syntax instead of framework syntax.
It produced too much noise.
llvm-svn: 94120
|
|
|
|
|
|
|
| |
preprocessor. This could be used by an OpenMP implementation
or something. Patch by Abramo Bagnara!
llvm-svn: 93795
|
|
|
|
|
|
|
| |
pointer is always non-null because the PTH case exits earlier
in the method.
llvm-svn: 93794
|
|
|
|
|
|
|
| |
disabled with the intent that users can start with them now and not have to change
a thing to have them work when we implement the features.
llvm-svn: 93312
|
|
|
|
| |
llvm-svn: 93141
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
incompatible with user-defined literals, specifically with the following form:
0x1p+1
The preprocessing-number token extends only as far as the 'p'; the '+' is not
included. Previously we could get away with this extension as p was an invalid
suffix, but now with user-defined literals, 'p' might well be a valid suffix
and we are forced to consider it as such.
This patch also adds a warning in non-0x C++ modes telling the user that
this extension is incompatible with C++0x that is enabled by default
(previously and with other languages, we warn only with a compliance
option such as -pedantic).
llvm-svn: 93135
|
|
|
|
| |
llvm-svn: 93114
|
|
|
|
|
|
| |
nicer than passing around two const char*'s.
llvm-svn: 93094
|
|
|
|
| |
llvm-svn: 93084
|
|
|
|
|
|
|
| |
import other headers within the same framework with the full
framework path, not with a relative include.
llvm-svn: 93083
|
|
|
|
| |
llvm-svn: 93064
|
|
|
|
|
|
|
|
| |
definitions from a precompiled header. This ensures that
code-completion with macro names behaves the same with or without
precompiled headers.
llvm-svn: 92497
|
|
|
|
|
|
| |
termination for us.
llvm-svn: 92358
|
|
|
|
| |
llvm-svn: 92357
|
|
|
|
|
|
| |
this speeds up Eonly on the testcase in PR5888 from 30.5s to 0.85s
llvm-svn: 92203
|
|
|
|
|
|
|
| |
not a token number. Fix the reserve logic to get the right
amount of space.
llvm-svn: 92202
|
|
|
|
| |
llvm-svn: 92127
|
|
|
|
| |
llvm-svn: 92055
|
|
|
|
|
|
|
| |
as a character literal, not a string literal. This might fix
rdar://7486575
llvm-svn: 92025
|
|
|
|
| |
llvm-svn: 91974
|
|
|
|
|
|
|
|
|
| |
1. Don't make a copy of LangOptions every time a lexer is created.
2. Don't make CharInfo global mutable state.
3. Fix the implementation to properly treat ^Z as EOF instead of as
horizontal whitespace, which matches the semantic implemented by VC++.
llvm-svn: 91586
|
|
|
|
|
|
|
|
|
|
| |
on PR5610 (2.185 -> 2.130s). The big issue is that this is making
insanely huge macro argument lists with over a million tokens in it.
The reason that mallco and free are so expensive is that we are
actually going to the kernel to get it, and switching to a bump
pointer allocator won't change this in an interesting way.
llvm-svn: 91449
|
|
|
|
|
|
|
|
|
| |
We creating and free thousands of MacroArgs objects (and the related
std::vectors hanging off them) for the testcase in PR5610 even though
there are only ~20 live at a time. This doesn't actually use the
cache yet.
llvm-svn: 91391
|
|
|
|
|
|
|
| |
on 64-bit targets. Pass Preprocessor into create/destroy methods of MacroArgs
even though it isn't used yet.
llvm-svn: 91345
|
|
|
|
| |
llvm-svn: 91343
|
|
|
|
|
|
| |
files: PR5238.
llvm-svn: 91270
|
|
|
|
|
|
|
|
| |
expanding directives withing macro expansions. This is undefined behavior
according to 6.10.3p11, so we might as well be undefined in ways similar to
GCC.
llvm-svn: 91266
|
|
|
|
| |
llvm-svn: 91263
|
|
|
|
| |
llvm-svn: 91262
|
|
|
|
| |
llvm-svn: 90881
|
|
|
|
|
|
| |
http://llvm.org/viewvc/llvm-project?view=rev&revision=80043
llvm-svn: 90860
|
|
|
|
|
|
|
| |
diagnostics (specifically, that any extension in a compiler-reserved namespace
shouldn't trigger a diagnostic).
llvm-svn: 90826
|
|
|
|
|
|
|
|
| |
expected to fail.
Also, update SourceManager.h doxyments for getBuffer() to reflect reality.
llvm-svn: 90701
|
|
|
|
|
|
| |
should be forced to deal with error conditions.
llvm-svn: 90700
|
|
|
|
| |
llvm-svn: 90543
|
|
|
|
| |
llvm-svn: 90459
|