summaryrefslogtreecommitdiffstats
path: root/clang/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Create a ASTUnitTU class to interface ASTUnit to the Indexer.Zhongxing Xu2010-07-021-2/+37
| | | | llvm-svn: 107467
* add -analyze-function option.Zhongxing Xu2010-07-021-2/+12
| | | | llvm-svn: 107463
* add -view-call-graph option to wpa.Zhongxing Xu2010-07-021-5/+11
| | | | llvm-svn: 107462
* Change CallGraph::Prog to be a reference. idx::Program means to be a global ↵Zhongxing Xu2010-07-021-1/+3
| | | | | | object to the Index library. llvm-svn: 107461
* Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy ↵Daniel Dunbar2010-06-161-1/+14
| | | | | | Straszheim! llvm-svn: 106113
* Break Frontend's dependency on Rewrite, Checker and CodeGen in shared ↵Daniel Dunbar2010-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | library configuration Currently, all AST consumers are located in the Frontend library, meaning that in a shared library configuration, Frontend has a dependency on Rewrite, Checker and CodeGen. This is suboptimal for clients which only wish to make use of the frontend. CodeGen in particular introduces a large number of unwanted dependencies. This patch breaks the dependency by moving all AST consumers with dependencies on Rewrite, Checker and/or CodeGen to their respective libraries. The patch therefore introduces dependencies in the other direction (i.e. from Rewrite, Checker and CodeGen to Frontend). After applying this patch, Clang builds correctly using CMake and shared libraries ("cmake -DBUILD_SHARED_LIBS=ON"). N.B. This patch includes file renames which are indicated in the patch body. Changes in this revision of the patch: - Fixed some copy-paste mistakes in the header files - Modified certain aspects of the coding to comply with the LLVM Coding Standards llvm-svn: 106010
* Makefiles: Remove unnecessary early include of Makefile.config.Daniel Dunbar2010-06-083-15/+0
| | | | llvm-svn: 105640
* Makefiles: Set Clang CPP compiler flags in a single location, instead of ↵Daniel Dunbar2010-06-083-4/+0
| | | | | | scattered throughout the project Makefiles. llvm-svn: 105638
* Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.Daniel Dunbar2010-06-084-11/+11
| | | | | | - This eliminates most dependencies on how Clang is installed relative to LLVM. llvm-svn: 105637
* Teach the PrintFunctionNames example to be a proper module, so thatDouglas Gregor2010-06-082-19/+5
| | | | | | | Clang can load it as a plugin. Original fix by Troy D. Straszheim, which I extended with Darwin support. Fixes PR6801. llvm-svn: 105630
* Update LINK_COMPONENTS for examples.Daniel Dunbar2010-06-082-2/+2
| | | | llvm-svn: 105607
* Tip of the day: save before commit.Benjamin Kramer2010-04-201-2/+2
| | | | llvm-svn: 101896
* Fix -Wcast-qual warnings.Benjamin Kramer2010-04-201-3/+5
| | | | llvm-svn: 101895
* clang-wpa fixes for DiagnosticDouglas Gregor2010-04-061-4/+2
| | | | llvm-svn: 100518
* Unbreak buildDouglas Gregor2010-04-061-2/+3
| | | | llvm-svn: 100514
* GrrrrDouglas Gregor2010-04-051-1/+1
| | | | llvm-svn: 100476
* Try to de-bork build of WPADouglas Gregor2010-04-051-1/+2
| | | | llvm-svn: 100475
* Driver: Add support for a CLANGXX_IS_PRODUCTION build variable, which enableDaniel Dunbar2010-04-011-1/+2
| | | | | | Clang++ support, even in "Production" mode (for testing purposes). llvm-svn: 100119
* Wire up Daniel's new spiffy C interpreter into the CMake build systemKovarththanan Rajaratnam2010-02-272-0/+31
| | | | llvm-svn: 97311
* Add commentKovarththanan Rajaratnam2010-02-271-0/+2
| | | | llvm-svn: 97309
* Add header + commentsKovarththanan Rajaratnam2010-02-271-0/+12
| | | | llvm-svn: 97308
* Add a minimal C interpreter example.Daniel Dunbar2010-02-254-1/+198
| | | | | | | | | | | | | | | | | | - 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 -- llvm-svn: 97133
* -fno-rtti is now the default.Chris Lattner2010-01-242-2/+0
| | | | llvm-svn: 94379
* Fix -plugin command line argument syntax for clang -cc1 change.Daniel Dunbar2010-01-051-1/+1
| | | | llvm-svn: 92780
* Fix CMake build on windows, from Cedric VenetDouglas Gregor2009-12-201-4/+0
| | | | llvm-svn: 91794
* Update docs/comments/utils/examples to refer to clang -cc1 instead of clang-cc.Daniel Dunbar2009-12-112-4/+4
| | | | llvm-svn: 91176
* Document that CompilerInvocation::createDiagnostics keeps a reference to the ↵Daniel Dunbar2009-12-061-1/+2
| | | | | | DiagnosticOptions, and update callers to make sure they don't pass in a temporary. llvm-svn: 90704
* Fix layering violation by moving Analysis/CallGraph to IndexDaniel Dunbar2009-12-031-2/+2
| | | | llvm-svn: 90424
* Fix ASTUnit to allows require a (persistent) Diagnostic object be provided; ↵Daniel Dunbar2009-12-031-11/+5
| | | | | | propogate and simplify. llvm-svn: 90379
* Update example link lines.Daniel Dunbar2009-12-034-11/+29
| | | | llvm-svn: 90359
* Add a very minimal README.txt for examples/PrintFunctionNames.Daniel Dunbar2009-12-011-0/+10
| | | | llvm-svn: 90197
* Add missed CMake file for adding clang examples to CMake build.Daniel Dunbar2009-11-171-0/+3
| | | | llvm-svn: 89080
* Add a trivial example plugin, which prints the names of the top-level decls.Daniel Dunbar2009-11-154-1/+89
| | | | | | - The build scriptage is about twice as long as the code, which is nice. :) llvm-svn: 88826
* Add examples dir, built with BUILD_EXAMPLES=1 (Makefiles, no CMake ↵Daniel Dunbar2009-11-154-0/+111
equivalent yet). Move tools/wpa to examples/wpa, and unbreak its build. llvm-svn: 88825
OpenPOWER on IntegriCloud