summaryrefslogtreecommitdiffstats
path: root/clang/utils
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] SATestBuild.py: allow make builds to disable parallelizationJordan Rose2012-11-261-1/+2
| | | | | | | | Before, SATestBuild unilaterally added '-j<n>' to every project built with 'make'. Now, we check and see if there's a -j option already specified, which allows a project to explicitly be marked '-j1'. llvm-svn: 168603
* [analyzer] SATestBuild.py: fix broken string concatenationJordan Rose2012-11-161-2/+2
| | | | | | | | This has been broken for a while, but the branch was never being taken. (We were trying to do 'str + floatVal'; now we do 'str % intVal' and use the '%d' format.) llvm-svn: 168174
* [ClangDataFormat.py] Add summary for QualType.Argyrios Kyrtzidis2012-11-161-2/+19
| | | | llvm-svn: 168117
* [analyzer] CmpRuns: move the clang_version info into the run (out ofAnna Zaks2012-11-151-7/+15
| | | | | | report) llvm-svn: 168105
* [analyzer] SATestBuild.py: correctly add -j option for projects using make.Jordan Rose2012-11-151-2/+2
| | | | llvm-svn: 168099
* [utils/ClangDataFormat.py] For invalid source locations just returnArgyrios Kyrtzidis2012-11-151-0/+6
| | | | | | "<invalid loc>" for summary. llvm-svn: 168087
* [PCH] Reading expressions from attributes should be done using ReadExpr(),Argyrios Kyrtzidis2012-11-151-1/+1
| | | | | | | | | | | not ReadExpr(). Also add a test case making sure the thread safety attributes work as expected when they come from a PCH. Fixes rdar://12584141 & http://llvm.org/PR13982 llvm-svn: 168017
* [utils/ClangDataFormat.py] Add data formatter for StringRef.Argyrios Kyrtzidis2012-11-141-0/+21
| | | | llvm-svn: 168003
* [utils/ClangDataFormat.py] In the summary of SourceLocation, include whether ↵Argyrios Kyrtzidis2012-11-141-2/+5
| | | | | | | | it is local or loaded. llvm-svn: 168002
* Remove the cellspu port.Eric Christopher2012-11-143-6/+0
| | | | | | Approved by Chris Lattner. llvm-svn: 167983
* [analyzer] Ensure that CmpRuns recursively walks the output directory.Anna Zaks2012-11-141-39/+40
| | | | llvm-svn: 167981
* Remove leftover code.Argyrios Kyrtzidis2012-11-091-3/+0
| | | | llvm-svn: 167641
* Add lldb data formatters for clang classes, starting with SourceLocation.Argyrios Kyrtzidis2012-11-091-0/+116
| | | | | | | | | | | | | | | | | | When installed, instead of getting this: (lldb) p Tok.Loc (clang::SourceLocation) $0 = { (unsigned int) ID = 123582 } you'll get: (lldb) p Tok.Loc (clang::SourceLocation) $4 = "/usr/include/i386/_types.h:37:1" (offset: 123582, file) This depends on r167629. llvm-svn: 167640
* [analyzer] Test SimpleStream on the buildbot.Anna Zaks2012-11-021-1/+1
| | | | llvm-svn: 167317
* Don't require exception handling for clang-tblgen.Joerg Sonnenberger2012-10-252-2/+0
| | | | llvm-svn: 166713
* Don't throw exceptions in clang-tblgen by switching to PrintFatalError.Joerg Sonnenberger2012-10-254-18/+24
| | | | | | Add locations in a number of places, where they are available for free. llvm-svn: 166691
* [Options] Add prefixes to options.Michael J. Spencer2012-10-221-2/+79
| | | | | | | | | | | | | | Each option has a set of prefixes. When matching an argument such as -funroll-loops. First the leading - is removed as it is a prefix. Then a lower_bound search for "funroll-loops" is done against the option table by option name. From there each option prefix + option name combination is tested against the argument. This allows us to support Microsoft style options where both / and - are valid prefixes. It also simplifies the cases we already have where options come in both - and -- forms. Almost every option for gnu-ld happens to have this form. llvm-svn: 166444
* [analyzer] CmpRuns: cleanup APIs, allow processing of plists with noAnna Zaks2012-10-171-16/+20
| | | | | | clang_version, fix the compare routine. llvm-svn: 166129
* [analyzer] Expose clang_version in CmpRunsAnna Zaks2012-10-161-2/+3
| | | | llvm-svn: 166048
* [analyzer] CmpRuns - cleaned up the API, added relative path getterAnna Zaks2012-10-151-19/+40
| | | | llvm-svn: 165995
* Remove pointless classof()'s.Sean Silva2012-10-111-2/+0
| | | | | | | Updates to llvm/Support/Casting.h have rendered these classof()'s irrelevant. llvm-svn: 165770
* tblgen: Build clang-tblgen without RTTI.Sean Silva2012-10-102-2/+0
| | | | | | clang-tblgen no longer needs RTTI! llvm-svn: 165650
* tblgen: Use LLVM-style RTTI in clang-tblgenSean Silva2012-10-104-25/+24
| | | | llvm-svn: 165649
* tblgen: Migrate clang-tblgen to new TableGenMain API.Sean Silva2012-10-031-87/+82
| | | | llvm-svn: 165167
* Comment sema: warn when comment has \deprecated but declaration does not have aDmitri Gribenko2012-09-221-0/+1
| | | | | | | | | deprecation attribute ('deprecated', 'availability' or 'unavailable'). This warning is under a separate flag, -Wdocumentation-deprecated-sync, so it can be turned off easily while leaving other -Wdocumentation warnings on. llvm-svn: 164467
* Comment parsing: handle \deprecated command. It is a block command, but itDmitri Gribenko2012-09-131-0/+1
| | | | | | | should be fine to use it without further explanations in the attached paragraph, so the warning about empty paragraph was turned off for it. llvm-svn: 163836
* Comment AST: TableGen'ize all command lists in CommentCommandTraits.cpp.Dmitri Gribenko2012-09-104-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we have a list of all commands. This is a good thing in itself, but it also enables us to easily implement typo correction for command names. With this change we have objects that contain information about each command, so it makes sense to resolve command name just once during lexing (currently we store command names as strings and do a linear search every time some property value is needed). Thus comment token and AST nodes were changed to contain a command ID -- index into a tables of builtin and registered commands. Unknown commands are registered during parsing and thus are also uniformly assigned an ID. Using an ID instead of a StringRef is also a nice memory optimization since ID is a small integer that fits into a common bitfield in Comment class. This change implies that to get any information about a command (even a command name) we need a CommandTraits object to resolve the command ID to CommandInfo*. Currently a fresh temporary CommandTraits object is created whenever it is needed since it does not have any state. But with this change it has state -- new commands can be registered, so a CommandTraits object was added to ASTContext. Also, in libclang CXComment has to be expanded to include a CXTranslationUnit so that all functions working on comment AST nodes can get a CommandTraits object. This breaks binary compatibility of CXComment APIs. Now clang_FullComment_getAsXML(CXTranslationUnit TU, CXComment CXC) doesn't need TU parameter anymore, so it was removed. This is a source-incompatible change for this C API. llvm-svn: 163540
* Add handy script for updating plist FileCheck expected output forTed Kremenek2012-09-101-0/+51
| | | | | | analyzer tests. llvm-svn: 163486
* [analyzer] testing: add a build mode to allow C++11 testing.Anna Zaks2012-09-062-16/+22
| | | | llvm-svn: 163357
* Dont cast away const needlessly. Found by gcc48 -Wcast-qual.Roman Divacky2012-09-061-2/+2
| | | | llvm-svn: 163325
* Comment HTML tag name machers: move from StringSwitch to an efficientDmitri Gribenko2012-08-314-0/+89
| | | | | | TableGen-generated string matcher. llvm-svn: 162969
* Revert "[analyzer] Disable diagnostic checking on the buildbot."Jordan Rose2012-08-311-8/+6
| | | | | | | This reverts commit befc0f648c83f65e1f3567f2058c7c18b4bc3ad8 now that plist-html diagnostics are working again. llvm-svn: 162966
* [analyzer] Disable diagnostic checking on the buildbot.Anna Zaks2012-08-301-6/+8
| | | | | | Due to recent diagnostic changes, we may generate malformed diagnostics. llvm-svn: 162940
* [analyzer] Fixup 162863.Anna Zaks2012-08-291-3/+0
| | | | | | Thanks Jordan. llvm-svn: 162875
* [analyzer]Fix typo, unbreak static analyzer BuildBot (at leastAnna Zaks2012-08-291-1/+4
| | | | | | | | partially). (Addresses a regression from r162790.) llvm-svn: 162864
* Automatically use more cores when the test build uses 'make'.Ted Kremenek2012-08-281-0/+29
| | | | llvm-svn: 162790
* Consolidate helper methods and configuration logic. No functionality change.Ted Kremenek2012-08-281-34/+46
| | | | llvm-svn: 162789
* Pass --use-analyzer to scan-build when running within the test harness.Ted Kremenek2012-08-281-4/+42
| | | | llvm-svn: 162783
* experimental.security.taint is now alpha.security.taintTed Kremenek2012-08-281-1/+1
| | | | llvm-svn: 162775
* [analyzer] More internal stats collection.Anna Zaks2012-08-271-4/+13
| | | | llvm-svn: 162687
* [analyzer] Ted fixed the plist-html issue, so the assert can go away.Anna Zaks2012-08-241-3/+1
| | | | llvm-svn: 162598
* [analyzer] Unbreak the static analyzer buildbot.Anna Zaks2012-08-171-1/+3
| | | | | | | We no longer associate the correct HTML file with plist diagnostic. Fall out from r162028. llvm-svn: 162071
* Don't constant-fold when pretty-printing alignment attribute. This fixes aRichard Smith2012-08-161-3/+6
| | | | | | potential crasher -- Context is sometimes a null reference (!!) here. llvm-svn: 162007
* Placate the mingw32 buildbot by suffixing 64-bit constants with ULL.Richard Smith2012-08-141-2/+2
| | | | llvm-svn: 161831
* Fix undefined behavior (and wrong code, as far as I can tell) in NEON builtinRichard Smith2012-08-141-3/+3
| | | | | | | | | tablegen code, found by -fcatch-undefined-behavior. I would appreciate if someone more familiar with the NEON code could point me in the direction of how to write a test for this. We appear to have essentially no test coverage whatsoever for these builtins. llvm-svn: 161827
* Fix horrible regression in control of warnings caused by introduction of ↵Ted Kremenek2012-08-101-4/+12
| | | | | | | | | | | | | | | -Wpedantic. While -Wpedantic was reasonable, -Wno-pedantic would turn off a bunch of warnings that are on by default. This counters the intention of this warning flag. To fix this, -Wpedantic now includes extentions that are not on by default. The remaining warnings will manifest anyway, and won't accidentally get turned off by -Wno-pedantic. Fixes <rdar://problem/12076105> llvm-svn: 161695
* Add missing cctype includes.Joerg Sonnenberger2012-08-101-0/+1
| | | | llvm-svn: 161660
* Enhance ClangDiagnosticsEmitter to reject diagnostics that are errors that ↵Ted Kremenek2012-08-071-0/+17
| | | | | | | | | | | | | | are also included in warning groups. Warning groups can only contain warnings, because only warnings can be mapped to errors or ignored. This caught a few diagnostics that were incorrectly in diagnostic groups, and could have resulted in a compiler crash when those diagnostic groups were mapped. Fixes <rdar://problem/12044436> llvm-svn: 161389
* TableGen: Remove extraneous \ character from arm_neon.h definitions.Jim Grosbach2012-08-031-1/+1
| | | | llvm-svn: 161244
* [analyzer] CmpRuns should include file name in the issue identifier.Anna Zaks2012-08-021-17/+26
| | | | | | | | | | This prevents us from treating the issues from different files with the same function names and same offsets as the same. The issue identifier now includes the file name. Also added a way to strip off the root directories form the source file names. llvm-svn: 161150
OpenPOWER on IntegriCloud