summaryrefslogtreecommitdiffstats
path: root/clang/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* [analyzer] Moving cplusplus.NewDelete to alpha.* for now.Anton Yartsev2013-04-021-1/+1
| | | | llvm-svn: 178529
* [ms-cxxabi] Give the MS inheritance attributes a base classReid Kleckner2013-03-261-1/+16
| | | | | | | | Required making a handful of changes to the table generator. Also adds an unspecified inheritance attribute. This opens the path for us to apply these attributes to C++ records implicitly. llvm-svn: 178054
* [analyzer] Adds cplusplus.NewDelete checker that check for memory leaks, ↵Anton Yartsev2013-03-251-1/+1
| | | | | | double free, and use-after-free problems of memory managed by new/delete. llvm-svn: 177849
* [analyzer] CmpRuns.py: Accept single files as input.Jordan Rose2013-03-231-46/+51
| | | | | | | | This allows us to compare two direct invocations of the analyzer on a single source file without having to wrap the output plists in their own directories. llvm-svn: 177804
* Documentation parsing. Some refactoring and codeFariborz Jahanian2013-03-081-2/+2
| | | | | | improvements per Dmtiri's comments. // rdar://12379114 llvm-svn: 176739
* HeaderDoc: Support more of HeaderDoc documentation Fariborz Jahanian2013-03-071-0/+2
| | | | | | | | commands; top level tags such as @interface and their 2nd level tags such as @coclass, etc. // rdar://12379114 llvm-svn: 176667
* doc parsing. We want to issue a strong warning whenFariborz Jahanian2013-03-051-0/+1
| | | | | | | an @function comment is not followed by a function decl. // rdar://13094352 llvm-svn: 176468
* Strip 'llvm' from 'llvm::Optional' uses.Ted Kremenek2013-02-211-1/+1
| | | | llvm-svn: 175701
* Comment parsing: improve the fidelity of XML output for many block commandsDmitri Gribenko2013-02-013-0/+53
| | | | | | | | | | | | | | This change introduces a 'kind' attribute for the <Para> tag, that captures the kind of the parent block command. For example: \todo Meow. used to be just <Para>Meow.</Para>, but now it is <Para kind="todo">Meow.</Para> llvm-svn: 174216
* [Sema][Attr]Fix alignment attribute printing.Michael Han2013-02-011-0/+47
| | | | | | | | | Remove "IsMSDeclspec" argument from Align attribute since the arguments in Attr.td should only model those appear in source code. Introduce attribute Accessor, and teach TableGen to generate syntax kind accessors for Align attribute, and use those accessors to decide if an alignment attribute is a declspec attribute. llvm-svn: 174133
* [Comment parsing] Add support for recognizingFariborz Jahanian2013-01-311-0/+1
| | | | | | | | \headerfile command and representing it in an xml document. Patch reviewed by Dmitri Gribenko. // rdar://12397511 llvm-svn: 174109
* Add indents to AST dumping and removed parenthesis from AST nodes.Richard Trieu2013-01-311-4/+37
| | | | | | | | | | | | | | | | | | | | | Indents were given the color blue when outputting with color. AST dumping now looks like this: Node |-Node | `-Node `-Node `-Node Compared to the previous: (Node (Node (Node)) (Node (Node))) llvm-svn: 174022
* TableGen backends: use emitSourceFileHeader() to emit the warning aboutDmitri Gribenko2013-01-305-18/+34
| | | | | | file contents being autogenerated llvm-svn: 173979
* Comment parsing: resolve more named character referencesDmitri Gribenko2013-01-304-0/+93
| | | | | | | | | This reimplements r173850 with a better approach: (1) use a TableGen-generated matcher instead of doing a linear search; (2) avoid allocations for new strings by converting code points to string iterals with TableGen. llvm-svn: 173931
* Propagate the spelling list index for an attribute across template ↵Richard Smith2013-01-291-1/+1
| | | | | | instantiation. llvm-svn: 173768
* Replace AS_MSTypespec with AS_Keyword, for representing any attribute spelledRichard Smith2013-01-291-1/+5
| | | | | | | | | as a keyword. Rationalize existing attributes to use it as appropriate, and to not lie about some __declspec attributes being GNU attributes. In passing, remove a gross hack which was discarding attributes which we could handle. This results in us actually respecting the __pascal keyword again. llvm-svn: 173746
* Add the missing line return to align parameters of printPretty.Michael Han2013-01-271-1/+1
| | | | llvm-svn: 173597
* [utils] Kill another no-longer-useful utility script.Daniel Dunbar2013-01-251-117/+0
| | | | | | | - We are long past the days of getting clang to fail in mass on swaths of code, fortunately. llvm-svn: 173523
* [utils] Remove the OptionalTests subdir no one runs.Daniel Dunbar2013-01-254-371/+0
| | | | llvm-svn: 173491
* [utils] Remove C++Tests that I don't think anyone uses anymore.Daniel Dunbar2013-01-2510-333/+0
| | | | llvm-svn: 173490
* scan-build: Add a --keep-empty option for better testing.Jordan Rose2013-01-241-0/+1
| | | | | | | | SATestBuild expects to compare output directories for each invocation of scan-build that it runs, but scan-build clears out empty directories by default. We were coincidentally not getting that behavior until r173294. llvm-svn: 173383
* PR14922: when printing an attribute, use the real syntax of the attribute ↵Michael Han2013-01-243-21/+148
| | | | | | | | | | | | | (GNU, C++11, MS Declspec) instead of hardcoded GNU syntax. Introduce a spelling index to Attr class, which is an index into the attribute spelling list of an attribute defined in Attr.td. This index will determine the actual spelling used by an attribute, as it incorporates both the syntax and naming of the attribute. When constructing an attribute AST node, the spelling index is computed based on attribute kind, scope (if it's a C++11 attribute), and name, then passed to Attr that will use the index to print itself. Thanks to Richard Smith for the idea and review. llvm-svn: 173358
* clang/utils/valgrind/x86_64-pc-linux-gnu_gcc-4.3.3.supp: Add /usr/bin/cmp.NAKAMURA Takumi2013-01-201-0/+7
| | | | | | | | | FIXME: It could be removed if; - check-all included llvm/valgrind/supp, too. - clang-vg didn't use "check-all". llvm-svn: 172982
* Turns out there is a simpler way of getting a set difference in bash than ↵Benjamin Kramer2013-01-141-1/+1
| | | | | | parsing diff output. llvm-svn: 172420
* Speed up find-unused-diagnostics. Now runs in less than a second instead of ↵Benjamin Kramer2013-01-121-11/+7
| | | | | | more than a minute. llvm-svn: 172330
* Remove useless 'llvm::' qualifier from names like StringRef and others that areDmitri Gribenko2013-01-121-3/+3
| | | | | | brought into 'clang' namespace by clang/Basic/LLVM.h llvm-svn: 172323
* Error if an anonymous DiagGroup is referenced multiple times.Jordan Rose2013-01-101-2/+119
| | | | | | | | | | | Not only is this inefficient for TableGen, it's annoying for maintenance when renaming warning flags (unusual) or adding those flags to a group (more likely). This uses the new fix-it infrastructure for LLVM's SourceMgr/SMDiagnostic, as well as a few changes to TableGen to track more source information. llvm-svn: 172087
* [utils/ClangDataFormat.py] Don't use lldb.frame directly, get the frame from ↵Argyrios Kyrtzidis2013-01-091-3/+4
| | | | | | | | | the value. Some lldb changes made lldb.frame not set until a script is invoked, which made the formatters not working after a restart. llvm-svn: 172017
* Fixed a number of -Wcovered-switch-default diagnostics in ↵Alexander Kornienko2013-01-071-5/+0
| | | | | | tools/clang/include/clang/AST/AttrDump.inc llvm-svn: 171768
* Implement Attr dumping for -ast-dump.Alexander Kornienko2013-01-073-13/+129
| | | | | | | | http://llvm-reviews.chandlerc.com/D234 Patch by Philip Craig! llvm-svn: 171760
* Sort the #include lines under utils/...Chandler Carruth2012-12-043-7/+5
| | | | llvm-svn: 169245
* [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
OpenPOWER on IntegriCloud