| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
only insert spaces between tokens if the code had them or if they
are actually required to avoid pasting. This reuses the same
logic as -E mode.
llvm-svn: 64421
|
|
|
|
| |
llvm-svn: 63097
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Token now has a class of kinds for "literals", which include
numeric constants, strings, etc. These tokens can optionally have
a pointer to the start of the token in the lexer buffer. This
makes it faster to get spelling and do other gymnastics, because we
don't have to go through source locations.
This change is performance neutral, but will make other changes
more feasible down the road.
llvm-svn: 63028
|
|
|
|
|
|
|
|
|
|
| |
ground work for implementing #line, and fixes the "out of macro ID's"
problem.
There is nothing particularly tricky about the code, other than the
very performance sensitive SourceManager::getFileID() method.
llvm-svn: 62978
|
|
|
|
|
|
| |
no longer such thing as a non-canonical FileID.
llvm-svn: 62499
|
|
|
|
|
|
| |
entire file.
llvm-svn: 62414
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"FileID" a concept that is now enforced by the compiler's type checker
instead of yet-another-random-unsigned floating around.
This is an important distinction from the "FileID" currently tracked by
SourceLocation. *That* FileID may refer to the start of a file or to a
chunk within it. The new FileID *only* refers to the file (and its
#include stack and eventually #line data), it cannot refer to a chunk.
FileID is a completely opaque datatype to all clients, only SourceManager
is allowed to poke and prod it.
llvm-svn: 62407
|
|
|
|
|
|
| |
"logical" location, refer to the "instantiation" location.
llvm-svn: 62316
|
|
|
|
|
|
| |
must be under the `tools' subdirectory of the LLVM *source* tree.
llvm-svn: 58180
|
|
|
|
|
|
|
| |
wraps comments in <i> tags. Extend rewrite tokens to support
this minimal functionality.
llvm-svn: 57409
|
|
|
|
|
|
| |
and lets a client iterate over it.
llvm-svn: 57407
|
|
|
|
|
|
|
|
|
|
|
| |
using LexRawToken, create one and use LexFromRawLexer. This avoids
twiddling the RawLexer flag around and simplifies some code (even
speeding raw lexing up a tiny bit).
This change also improves the token paster to use a Lexer on the stack
instead of new/deleting it.
llvm-svn: 57393
|
|
|
|
| |
llvm-svn: 57274
|
|
|
|
|
|
| |
that includes any edits in the range.
llvm-svn: 57037
|
|
|
|
| |
llvm-svn: 56242
|
|
|
|
|
|
|
| |
"Here is a patch what replaces std::ostream with llvm::raw_ostream. This patch
covers the AST library, but ignores Analysis lib."
llvm-svn: 56185
|
|
|
|
|
|
| |
"This minor patch adds markup of string literals with a red colour."
llvm-svn: 55589
|
|
|
|
| |
llvm-svn: 54854
|
|
|
|
| |
llvm-svn: 53492
|
|
|
|
|
|
|
|
| |
bug. Patch by Jean-Daniel Dupas!
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html
llvm-svn: 53184
|
|
|
|
|
|
| |
from the rope. rdar://5952468
llvm-svn: 51651
|
|
|
|
| |
llvm-svn: 51645
|
|
|
|
| |
llvm-svn: 51519
|
|
|
|
| |
llvm-svn: 51514
|
|
|
|
| |
llvm-svn: 50839
|
|
|
|
| |
llvm-svn: 50126
|
|
|
|
| |
llvm-svn: 49975
|
|
|
|
| |
llvm-svn: 49896
|
|
|
|
|
|
| |
depends on the column number of the start of the tab.
llvm-svn: 49891
|
|
|
|
| |
llvm-svn: 49888
|
|
|
|
| |
llvm-svn: 49886
|
|
|
|
|
|
| |
macro expansions.
llvm-svn: 49877
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dstor.
clang.cpp: InitializePreprocessor now makes a copy of the contents of PredefinesBuffer and
passes it to the preprocessor object.
clang.cpp: DriverPreprocessorFactory now calls "InitializePreprocessor" instead of this being done in main().
html::HighlightMacros() now takes a PreprocessorFactory, allowing it to conjure up a new
Preprocessor to highlight macros.
class HTMLDiagnostics now takes a PreprocessorFactory* that it can use for html::HighlightMacros().
Updated clients of HTMLDiagnostics to use this new interface.
llvm-svn: 49875
|
|
|
|
| |
llvm-svn: 49871
|
|
|
|
| |
llvm-svn: 49870
|
|
|
|
|
|
|
|
|
|
| |
expanding its definition. This is a pure CSS solution.
Tested on IE7, Firefox 3b4, and Safari 3.1.
Patch by Cedric Venet!
llvm-svn: 49865
|
|
|
|
|
|
| |
but we want some javascript or something toggle their display.
llvm-svn: 49836
|
|
|
|
|
|
| |
preprocessor directives.
llvm-svn: 49828
|
|
|
|
|
|
| |
correctly handle multi-line comments.
llvm-svn: 49827
|
|
|
|
|
|
| |
yet, but it will soon...
llvm-svn: 49825
|
|
|
|
| |
llvm-svn: 49816
|
|
|
|
|
|
|
|
| |
with the Lexer. This is cheaper and gives us some advantages. For now we start
highlighting preprocessor directives (which need improvement), and disable
comments. Comments to be restored later.
llvm-svn: 49815
|
|
|
|
| |
llvm-svn: 49781
|
|
|
|
|
|
| |
colors.
llvm-svn: 49780
|
|
|
|
|
|
|
|
|
| |
allowing us to use a cheaper means to highlight keywords and making
it so that comments won't foul up macro expansions.
Start highlighting macro expansions.
llvm-svn: 49779
|
|
|
|
|
|
|
|
| |
problems, including the fact that it doesn't work well with multi-line
comments due to Ted's crazy table. However, that could be fixed, and it
does work with single-line ones :).
llvm-svn: 49778
|
|
|
|
|
|
| |
rewriter, getting sourcelocations out of the picture.
llvm-svn: 49775
|
|
|
|
|
|
|
|
| |
a SourceLocation to get a RewriteBuffer, poke the RewriteBuffer
with an offset directly. THis is no faster, but results in
cleaner code.
llvm-svn: 49774
|
|
|
|
|
|
|
| |
speeds up -emit-html on ted's testcase by 29% (.138 -> 0.107s) in a
release build.
llvm-svn: 49767
|
|
|
|
| |
llvm-svn: 49742
|