summaryrefslogtreecommitdiffstats
path: root/clang/examples
Commit message (Collapse)AuthorAgeFilesLines
* make `make` work in examples/PrintFucntionNames on Mac. I checked that it ↵Nico Weber2011-01-262-5/+11
| | | | | | still works on Linux. llvm-svn: 124325
* Fix name to match reality.Nick Lewycky2011-01-191-1/+1
| | | | llvm-svn: 123813
* Get clang-wpa to build in TOT (reflecting updatesTed Kremenek2011-01-181-6/+11
| | | | | | to the static analyzer). llvm-svn: 123727
* Chris Lattner has strong opinions about directoryTed Kremenek2010-12-235-8/+8
| | | | | | | | | | | | layout. :) Rename the 'EntoSA' directories to 'StaticAnalyzer'. Internally we will still use the 'ento' namespace for the analyzer engine (unless there are further sabre rattlings...). llvm-svn: 122514
* Rename headers: 'clang/GR' 'clang/EntoSA' andTed Kremenek2010-12-235-8/+8
| | | | | | update Makefile. llvm-svn: 122493
* [analyzer] Refactoring: Drop the 'GR' prefix.Argyrios Kyrtzidis2010-12-221-4/+4
| | | | llvm-svn: 122424
* [analyzer] Refactoring: Move checkers into lib/GR/Checkers and their own ↵Argyrios Kyrtzidis2010-12-225-2/+5
| | | | | | library, libclangGRCheckers llvm-svn: 122422
* [analyzer] Refactoring: lib/Checker -> lib/GR and libclangChecker -> ↵Argyrios Kyrtzidis2010-12-225-5/+5
| | | | | | libclangGRCore llvm-svn: 122421
* [analyzer] Refactoring: include/clang/Checker -> include/clang/GRArgyrios Kyrtzidis2010-12-221-4/+4
| | | | llvm-svn: 122420
* Merge System into Support.Michael J. Spencer2010-11-291-2/+2
| | | | llvm-svn: 120297
* Unbreak clang-interpreter. (Should there be some automated testing for this?)Eli Friedman2010-11-241-1/+2
| | | | llvm-svn: 120069
* Add a comment explaining why r117813 was needed.Dan Gohman2010-11-171-0/+5
| | | | llvm-svn: 119518
* Turns out that we may end up calling dladdr on GetExecutablePath, give it ↵Benjamin Kramer2010-10-301-1/+1
| | | | | | external linkage to make sure the lookup works on all platforms. llvm-svn: 117813
* These functions don't need external linkage.Dan Gohman2010-10-291-2/+2
| | | | llvm-svn: 117733
* Rename 'MaxLoop' to 'MaxVisit' in AnalysisManager to more correctly reflect ↵Tom Care2010-09-141-1/+1
| | | | | | that we aborted analysis may not necessarily be due to a loop. llvm-svn: 113862
* PrintFunctionNames: Fix Windows (MSV{S,C} and mingw) build.Michael J. Spencer2010-09-141-0/+28
| | | | llvm-svn: 113835
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-133-36/+39
| | | | | | | | | | | | | instead" This reverts commit r113631 Conflicts: CMakeLists.txt lib/CodeGen/CMakeLists.txt llvm-svn: 113817
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-103-39/+36
| | | | | | of whatever we were using before... llvm-svn: 113631
* clang-interpreter: libFrontend depends on libSerialization. Fix linux build ↵Benjamin Kramer2010-08-262-2/+2
| | | | | | by changing the link order. llvm-svn: 112187
* Update clang-interpreter for recent DiagnosticClient ownership changes.Benjamin Kramer2010-08-261-2/+3
| | | | llvm-svn: 112181
* Add back clang-wpa. It is useful for experimenting with inter-file analysis.Zhongxing Xu2010-08-253-0/+199
| | | | llvm-svn: 112014
* Add Serialization dependency to clang-interpreterPeter Collingbourne2010-08-242-3/+4
| | | | llvm-svn: 111874
* Remove wpa 'example', it isn't being maintained.Daniel Dunbar2010-08-115-199/+1
| | | | llvm-svn: 110809
* Frontend: Change PluginASTAction::ParseArgs to take a CompilerInstance objectDaniel Dunbar2010-08-021-4/+16
| | | | | | | | | | | | for use in reporting diagnostics. - We don't want to use the Action's own CompilerInstance, because that is only initialized during file processing and I like that invariant. Also, if ParseArgs returns false then abandon execution. Also, remove unused PluginASTAction::PrintHelp virtual method. llvm-svn: 110039
* Make a variable static.Dan Gohman2010-07-261-1/+1
| | | | llvm-svn: 109438
* Use an export file. Plugins must export llvm::Registry symbols.Dan Gohman2010-07-262-3/+9
| | | | | | Also, don't link in all the clang libraries statically. llvm-svn: 109436
* Fix clang-interpreter buildPeter Collingbourne2010-07-242-2/+2
| | | | llvm-svn: 109347
* Make a bunch of new data structures for the new analysisZhongxing Xu2010-07-221-0/+4
| | | | | | | engine of the new translation unit. State marshal is there but no real work is done. End nodes are passed back. llvm-svn: 109105
* Reapply r108617.Zhongxing Xu2010-07-191-2/+2
| | | | llvm-svn: 108668
* Revert r108617, it broke the build.Benjamin Kramer2010-07-171-2/+2
| | | | llvm-svn: 108621
* Prepare the analyzer for the callee in another translation unit:Zhongxing Xu2010-07-171-2/+2
| | | | | | | Let AnalysisContext contain a TranslationUnit. Let CallEnter refer to an AnalysisContext instead of a FunctionDecl. llvm-svn: 108617
* PrintFunctionNames is a plugin, it should pull in symbols from the clang binaryNick Lewycky2010-07-101-1/+0
| | | | | | that loads it, not by linking against them directly. llvm-svn: 108055
* Fix CMake buildPeter Collingbourne2010-07-091-0/+2
| | | | llvm-svn: 108031
* Add skeleton code to make wpa call the analysis engine.Zhongxing Xu2010-07-062-4/+34
| | | | llvm-svn: 107646
* Collect function definitions in the Indexer when indexing through the ASTs.Zhongxing Xu2010-07-061-0/+7
| | | | | | Add an API to get an Entity associated with a name in the global namespace. llvm-svn: 107642
* 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
OpenPOWER on IntegriCloud