Benjamin Kramer
a4f0a80e73
Tip of the day: save before commit.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101896 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-20 11:55:38 +00:00
Benjamin Kramer
9e8635a86d
Fix -Wcast-qual warnings.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101895 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-20 11:50:39 +00:00
Douglas Gregor
7969f936a1
clang-wpa fixes for Diagnostic
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100518 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-06 04:03:12 +00:00
Douglas Gregor
f45d67364e
Unbreak build
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100514 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-06 01:25:58 +00:00
Douglas Gregor
caff6ea818
Grrrr
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100476 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-05 21:47:48 +00:00
Douglas Gregor
f9b14a7af9
Try to de-bork build of WPA
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100475 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-05 21:47:24 +00:00
Daniel Dunbar
5d93ed3c7a
Driver: Add support for a CLANGXX_IS_PRODUCTION build variable, which enable
...
Clang++ support, even in "Production" mode (for testing purposes).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100119 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-01 18:21:41 +00:00
Kovarththanan Rajaratnam
dab10acd56
Wire up Daniel's new spiffy C interpreter into the CMake build system
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97311 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-27 07:46:49 +00:00
Kovarththanan Rajaratnam
87992993eb
Add comment
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97309 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-27 07:06:44 +00:00
Kovarththanan Rajaratnam
acf8444fb8
Add header + comments
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97308 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-27 07:05:56 +00:00
Daniel Dunbar
e22462867c
Add a minimal C interpreter example.
...
- Demonstrates how to build a standalone tool which loads source code using the
Driver and Frontend libraries, and then uses CodeGen and the JIT to actually
execute the code.
- Still more complicated than it should be, but hey its only 153 lines. :)
--
ddunbar@ozzy:tmp$ cat hello.c
#include <stdio.h>
int main() { printf("hello world\n"); return 0; }
ddunbar@ozzy:tmp$ clang-interpreter hello.c
hello world
--
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97133 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-25 08:49:05 +00:00
Chris Lattner
0bb46d285c
-fno-rtti is now the default.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94379 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-24 20:43:31 +00:00
Daniel Dunbar
b469546a3b
Fix -plugin command line argument syntax for clang -cc1 change.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92780 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-05 21:42:23 +00:00
Douglas Gregor
04f81b1fa0
Fix CMake build on windows, from Cedric Venet
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91794 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-20 20:56:30 +00:00
Daniel Dunbar
dd63b28107
Update docs/comments/utils/examples to refer to clang -cc1 instead of clang-cc.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91176 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-11 23:04:35 +00:00
Daniel Dunbar
bb3503a146
Document that CompilerInvocation::createDiagnostics keeps a reference to the DiagnosticOptions, and update callers to make sure they don't pass in a temporary.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90704 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-06 09:56:30 +00:00
Daniel Dunbar
8fd57fea85
Fix layering violation by moving Analysis/CallGraph to Index
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90424 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-03 07:20:04 +00:00
Daniel Dunbar
5262fda30b
Fix ASTUnit to allows require a (persistent) Diagnostic object be provided; propogate and simplify.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90379 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-03 01:45:44 +00:00
Daniel Dunbar
25a9c37fc2
Update example link lines.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90359 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-03 00:00:22 +00:00
Daniel Dunbar
ebe6862e34
Add a very minimal README.txt for examples/PrintFunctionNames.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90197 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-01 03:15:49 +00:00
Daniel Dunbar
6a4ce00f35
Add missed CMake file for adding clang examples to CMake build.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89080 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-17 09:40:40 +00:00
Daniel Dunbar
9a69387f5c
Add a trivial example plugin, which prints the names of the top-level decls.
...
- The build scriptage is about twice as long as the code, which is nice. :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88826 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-15 00:27:43 +00:00
Daniel Dunbar
297b0833ad
Add examples dir, built with BUILD_EXAMPLES=1 (Makefiles, no CMake equivalent yet).
...
Move tools/wpa to examples/wpa, and unbreak its build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88825 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-15 00:22:33 +00:00