summaryrefslogtreecommitdiffstats
path: root/clang/tools/wpa
Commit message (Collapse)AuthorAgeFilesLines
* Add examples dir, built with BUILD_EXAMPLES=1 (Makefiles, no CMake ↵Daniel Dunbar2009-11-153-98/+0
| | | | | | | | equivalent yet). Move tools/wpa to examples/wpa, and unbreak its build. llvm-svn: 88825
* make CallGraph more flexible by letting it accept ASTContext instead of ASTUnit.Zhongxing Xu2009-10-281-2/+2
| | | | | | Patch by Simone Pellegrini. llvm-svn: 85386
* Change ASTUnit to take the Diagnostic as an argument, the client should have ↵Daniel Dunbar2009-09-211-1/+6
| | | | | | control of this. llvm-svn: 82430
* Don't install wpa or index-test tools.Daniel Dunbar2009-08-201-0/+1
| | | | llvm-svn: 79557
* fix a couple of problems with section attributes:Chris Lattner2009-08-102-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Passing something that isn't a string used to cause: "argument to annotate attribute was not a string literal" make it say "section attribute" instead. 2. Fix the location of the above message to point to the bad argument instead of the section token. 3. Implement rdar://4341926, by diagnosing invalid section specifiers in the frontend rather than letting them slip all the way to the assembler (a QoI win). An example of #3 is that we used to produce something like this: /var/folders/n7/n7Yno9ihEm894640nJdSQU+++TI/-Tmp-//ccFPFGtT.s:2:Expected comma after segment-name /var/folders/n7/n7Yno9ihEm894640nJdSQU+++TI/-Tmp-//ccFPFGtT.s:2:Rest of line ignored. 1st junk character valued 46 (.). Daniel improved clang to use llvm_report_error, so now we got: $ clang t.c -c fatal error: error in backend: Global variable 'x' has an invalid section specifier 'sadf': mach-o section specifier requires a segment and section separated by a comma. with no loc info. Now we get: $ clang t.c -fsyntax-only t.c:4:30: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma int x __attribute__((section("sadf"))); ^ which is nice :) llvm-svn: 78586
* Remove the TranslationUnit usage from clang-wpa.cpp since it's not reallyArgyrios Kyrtzidis2009-07-291-16/+4
| | | | | | necessary. llvm-svn: 77529
* Add two nodes to the call graph:Zhongxing Xu2009-07-231-1/+1
| | | | | | | - Root is the main function or 0. - ExternalCallingNode has edges to all external functions. llvm-svn: 76876
* Add 'clang-wpa' to the CMake-based build.Ted Kremenek2009-07-161-0/+19
| | | | llvm-svn: 76091
* add copyright comments.Zhongxing Xu2009-07-161-0/+14
| | | | llvm-svn: 75877
* Add a primitive clang whole primitive analyzer tool.Zhongxing Xu2009-07-162-0/+70
llvm-svn: 75874
OpenPOWER on IntegriCloud