summaryrefslogtreecommitdiffstats
path: root/clang/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Let clang-check actually use the Directory entry in the json file.Nico Weber2011-05-141-0/+6
| | | | llvm-svn: 131367
* Fixes compilation with Visual Studio by replacing the non-standard ↵Manuel Klimek2011-05-101-2/+2
| | | | | | vector::data() access. llvm-svn: 131116
* Fix gcc 'warning: multi-line comment'.Nico Weber2011-04-301-2/+2
| | | | llvm-svn: 130583
* Add a Makefile to examples/Tooling for people who do not use cmake.Nico Weber2011-04-301-0/+24
| | | | llvm-svn: 130577
* Fix Makefile build of examples/clang-interpreter.Nico Weber2011-04-301-1/+1
| | | | llvm-svn: 130576
* This is the next step in building the standalone tools infrastructure:Manuel Klimek2011-04-273-1/+115
| | | | | | | | | | | | | | | This patch simplifies writing of standalone Clang tools. As an example, we add clang-check, a tool that runs a syntax only frontend action over a .cc file. When you integrate this into your favorite editor, you get much faster feedback on your compilation errors, thus reducing your feedback cycle especially when writing new code. The tool depends on integration of an outstanding patch to CMake to work which allows you to always have a current compile command database in your cmake output directory when you set CMAKE_EXPORT_COMPILE_COMMANDS. llvm-svn: 130306
* Fixed build error.John Thompson2011-03-291-2/+1
| | | | llvm-svn: 128470
* [analyzer] Add LangOptions in CheckerManager.Argyrios Kyrtzidis2011-02-231-1/+2
| | | | llvm-svn: 126306
* Re-instate r125819 and r125820 with no functionality changePeter Collingbourne2011-02-192-26/+1
| | | | llvm-svn: 126060
* Revert 125820 and 125819 to fix PR9266.Rafael Espindola2011-02-192-1/+26
| | | | llvm-svn: 126050
* Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenActionPeter Collingbourne2011-02-182-26/+1
| | | | | | | | | This removes the final dependency edge from any lib outside of CodeGen to core. As a result we can, and do, trim the dependency on core from libclang, PrintFunctionNames, the unit tests and c-index-test. While at it, review and trim other unneeded dependencies. llvm-svn: 125820
* Fix the clang-wpa example.Argyrios Kyrtzidis2011-02-151-10/+34
| | | | llvm-svn: 125565
* [analyzer] Introduce libclangStaticAnalyzerFrontend and move ↵Argyrios Kyrtzidis2011-02-145-2/+5
| | | | | | Checkers/AnalysisConsumer.cpp into Frontend lib. llvm-svn: 125499
* CMake: LLVM_NO_RTTI must be obsolete now!NAKAMURA Takumi2011-02-103-6/+0
| | | | llvm-svn: 125275
* Split 'include/clang/StaticAnalyzer' into ↵Ted Kremenek2011-02-101-3/+3
| | | | | | | | 'include/clang/StaticAnalyzer/Core' and 'include/clang/StaticAnalyzer/Checkers'. This layout matches lib/StaticAnalyzer, which corresponds to two StaticAnalyzer libraries. llvm-svn: 125251
* Update clang-wpa to pass extra argument to AnalysisManager constructor.Ted Kremenek2011-02-091-1/+2
| | | | llvm-svn: 125235
* 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
OpenPOWER on IntegriCloud