summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/TokenRewriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use ↵Eugene Zelenko2018-03-271-7/+8
| | | | | | warnings; other minor fixes (NFC). llvm-svn: 328597
* Roll-back r250822.Angel Garcia Gomez2015-10-201-1/+2
| | | | | | | | | | Summary: It breaks the build for the ASTMatchers Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D13893 llvm-svn: 250827
* Apply modernize-use-default to clang.Angel Garcia Gomez2015-10-201-2/+1
| | | | | | | | | | | | Summary: Replace empty bodies of default constructors and destructors with '= default'. Reviewers: bkramer, klimek Subscribers: klimek, alexfh, cfe-commits Differential Revision: http://reviews.llvm.org/D13890 llvm-svn: 250822
* Make clang's rewrite engine a core featureAlp Toker2014-07-161-0/+99
| | | | | | | | | | | | | | | The rewrite facility's footprint is small so it's not worth going to these lengths to support disabling at configure time, particularly since key compiler features now depend on it. Meanwhile the Objective-C rewriters have been moved under the ENABLE_CLANG_ARCMT umbrella for now as they're comparatively heavy and still potentially worth excluding from lightweight builds. Tests are now passing with any combination of feature flags. The flags historically haven't been tested by LLVM's build servers so caveat emptor. llvm-svn: 213171
* Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.Ted Kremenek2012-09-011-99/+0
| | | | | | | This is similar to how we divide up the StaticAnalyzer libraries to separate core functionality to what is clearly associated with Frontend actions. llvm-svn: 163050
* Clang should not warn on code in clang that is only there to remove warnings.Jakob Stoklund Olesen2011-01-061-1/+1
| | | | llvm-svn: 122941
* Introduced raw_identifier token kind.Abramo Bagnara2010-12-221-2/+2
| | | | llvm-svn: 122394
* Fix PR5633 by making the preprocessor handle the case where we canChris Lattner2009-11-301-1/+2
| | | | | | | | | | stat a file but where mmaping it fails. In this case, we emit an error like: t.c:1:10: fatal error: error opening file '../../foo.h' instead of "cannot find file". llvm-svn: 90110
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-10/+10
| | | | llvm-svn: 81346
* This change refactors some of the low-level lexer interfaces a bit.Chris Lattner2009-01-261-2/+3
| | | | | | | | | | | | | 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
* add a simplified lexer ctor that sets up the lexer to raw-lex anChris Lattner2009-01-171-4/+1
| | | | | | entire file. llvm-svn: 62414
* this massive patch introduces a simple new abstraction: it makesChris Lattner2009-01-171-3/+3
| | | | | | | | | | | | | | | "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
* make the -rewrite-test a bit more interesting: it now Chris Lattner2008-10-121-3/+50
| | | | | | | wraps comments in <i> tags. Extend rewrite tokens to support this minimal functionality. llvm-svn: 57409
* start implementing a token rewriter. At this point, it just reads in a fileChris Lattner2008-10-121-0/+53
and lets a client iterate over it. llvm-svn: 57407
OpenPOWER on IntegriCloud