Douglas Gregor
cdfe268463
Update CMake makefiles
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97113 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-25 04:52:01 +00:00
Douglas Gregor
9bed879896
Introduce a testbed for merging multiple ASTs into a single AST
...
context with the AST importer. WIP, still useless but at least it has
a test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95683 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-09 19:21:46 +00:00
Kovarththanan Rajaratnam
49ac8e63a0
Remove RewriteBlocks. It has been superseded by RewriteObjC
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92014 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-23 18:03:34 +00:00
Daniel Dunbar
f51ac1b3d0
Factor out a LangStandard class and coalesce the information about the standards into LangStandards.def
...
- I'd appreciate another pair of eyeballs to double check this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89919 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-26 02:14:31 +00:00
Daniel Dunbar
b3375cba79
Add initial cut at CompilerInvocation::toArgs, which "serializes" the CompilerInvocation into a list of arguments which can be passed to clang-cc (eventually, clang -cc1).
...
- Unfortunately, this is currently a tedious and manual translation. Eventually it would be nice to automatically generate this code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89049 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 06:02:29 +00:00
Daniel Dunbar
8305d01a1d
Add FrontendActions, which provides a FrontendAction interface to all the existing AST consumer based clang-cc actions.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88773 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-14 10:42:46 +00:00
Daniel Dunbar
4ee24097a8
Add FrontendAction interface, for encapsulating a "clang-cc" style action.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88772 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-14 10:42:35 +00:00
Daniel Dunbar
81f5a1e699
Add VerifyDiagnosticsClient, to replace old -verify.
...
- This reimplements -verify as just another DiagnosticClient, which buffers the diagnostics and checks them when the source file is complete. There are some hacks to make this work, but they are all internal, and this exposes a better external interface.
- This also tweaks a few things:
o Errors are now just regular diagnostics.
o Frontend diagnostics are now caught (for example, errors in command line arguments), although there isn't yet a way to specify that they are expected. That would be nice though.
- Not yet used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88748 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-14 03:23:19 +00:00
Daniel Dunbar
2a79e162a3
Add CompilerInstance, and starting moving clang-cc to it.
...
- The design philosophy is in the CompilerInstance doxyment, if you don't agree
with it now would be a good time to speak up.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87078 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-13 03:51:44 +00:00
Daniel Dunbar
fbe2fafe31
Move input kind identification (-x) into FrontendOptions.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87066 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-13 02:06:12 +00:00
Chandler Carruth
f465e85fd8
Move the ManagerRegistry to the Analysis library to resolve the layering violation.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86863 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-11 19:10:59 +00:00
Mike Stump
620d57a293
Fixup windows include paths. Patch by John Thompson.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83898 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-12 20:50:45 +00:00
Ted Kremenek
b3b73642bf
Lexically order files in CMakeLists.txt files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75832 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-15 21:08:41 +00:00
Argyrios Kyrtzidis
0daea7a162
Update CMake files.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74864 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-06 21:38:29 +00:00
Argyrios Kyrtzidis
53d4c14a98
Introduce the ResolveLocationInAST function which takes an ASTContext and a SourceLocation and it resolves it into a <Decl*, Stmt*> pair.
...
Decl* is the declaration associated with this source location and Stmt* is the statement/expression that the location points to.
If the location does not point to a statement node, Stmt* is null.
ResolveLocationInAST (along with converting a file:line:column triplet to a SourceLocation) will be useful for an IDE client and for clang's test suite.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74197 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-25 18:22:41 +00:00
Douglas Gregor
f391e098b2
Add missing dependencies to the CMake build system
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74162 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-25 05:03:29 +00:00
Argyrios Kyrtzidis
9336bcf24e
Update CMakeLists.txt
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74011 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-23 22:01:29 +00:00
Douglas Gregor
3c092bce5f
Fix some TableGen-related dependencies for the Clang CMake build
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73976 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-23 18:15:28 +00:00
Douglas Gregor
0adea828ec
Add some missing CMake dependencies
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73700 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-18 15:05:47 +00:00
Douglas Gregor
038f75abf5
More XML output support, from Olaf Krzikalla!
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73402 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-15 19:02:54 +00:00
Douglas Gregor
100bb76aa9
Fix CMake build for AST XML dumper
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72228 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-21 21:21:53 +00:00
Eli Friedman
0ec78fa2c9
Move AnalysisConsumer.h and Analyses.def from tools/clang-cc to
...
include/clang/Frontend, and move AnalysisConsumer.cpp from
tools/clang-cc to lib/Frontend.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72135 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-19 21:10:40 +00:00
Eli Friedman
ba60149b92
CMake updates for r72099; untested, so please tell me if there are any
...
issues.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72100 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-19 04:21:30 +00:00
Eli Friedman
2aa39cd55c
Attempted CMake build fixes for r72060; this is untested, so please tell
...
me if there are any issues.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72063 91177308-0d34-0410-b5e6-96231b3b80d8
2009-05-18 23:06:15 +00:00
Chris Lattner
63377d56de
split expr/stmt writing out to PCHWriterStmt.cpp
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70194 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-27 06:20:01 +00:00
Chris Lattner
12b1c7615d
split decl writing out to its own PCHWriterDecl.cpp file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70193 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-27 06:16:06 +00:00
Chris Lattner
698f925ded
split decl reading out to its own PCHReaderDecl.cpp file.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70187 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-27 05:27:42 +00:00
Chris Lattner
4c6f952b70
split stmt/expr deserialization out to PCHReaderStmt.cpp
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70186 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-27 05:14:47 +00:00
Chris Lattner
e116ccf140
Split preprocessor initialization logic out of clang-cc into
...
libfrontend. Patch by Alexei Svitkine!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69664 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-21 05:40:52 +00:00
Douglas Gregor
f1202511ee
Add PCH sources to CMake build files
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68794 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-10 17:28:42 +00:00
Douglas Gregor
837a406c66
Some cleanups to the fix-it rewriter. Thanks, Chris
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68322 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-02 16:34:42 +00:00
Mike Stump
a43a21ef14
Really fix cmake style builds.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67633 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-24 17:52:34 +00:00
Daniel Dunbar
e1bd4e6d7c
Rename lib/Driver (etc) to lib/Frontend in prep for the *actual*
...
driver taking lib/Driver.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65811 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-02 06:16:29 +00:00