summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [ms-inline asm] Test case for r166349 and r166352.Chad Rosier2012-10-191-0/+13
| | | | llvm-svn: 166353
* [Options] Make Option non clang specific.Michael J. Spencer2012-10-195-37/+35
| | | | llvm-svn: 166348
* [Options] make Option a value type.Michael J. Spencer2012-10-199-99/+112
| | | | llvm-svn: 166347
* remove noreturn attribute from __builtin_debugtrapShuxin Yang2012-10-191-1/+1
| | | | llvm-svn: 166345
* [ms-inline asm] Update testcase for r166316.Chad Rosier2012-10-191-2/+12
| | | | llvm-svn: 166317
* [ms-inline asm] Revert accidental commit. Sorry for the churn.Chad Rosier2012-10-191-24/+1
| | | | llvm-svn: 166312
* Pretty-print a ParenListExpr in a variable initializer correctly. Patch by ↵Eli Friedman2012-10-192-2/+10
| | | | | | Grzegorz Jablonski. llvm-svn: 166311
* [ms-inline asm] Set the SemaCallback in the TargetAsmParser.Chad Rosier2012-10-192-2/+27
| | | | llvm-svn: 166310
* tests: Fix two tests to just use -triple instead of XFAIL+XTARGET.Daniel Dunbar2012-10-192-6/+3
| | | | llvm-svn: 166304
* tests: Stop mangling '-vg' into the triple, we don't use this currently.Daniel Dunbar2012-10-191-5/+0
| | | | | | - Also, lit is going to get a valgrind feature, instead. llvm-svn: 166301
* IRgen: Initialize TargetLoweringInfo with a triple.Daniel Dunbar2012-10-191-1/+2
| | | | | | | | - We create two TargetLoweringInfo instances for different pass managers, and they weren't consistent (the one for codegen didn't have the right info). I'm not sure this mattered anywhere in practice. llvm-svn: 166299
* add __builtin_debugtrapShuxin Yang2012-10-191-0/+1
| | | | llvm-svn: 166298
* Clarify wording of -Wshift-op-parentheses.David Blaikie2012-10-193-9/+10
| | | | | | Suggestion from Matt Beaumont-Gay reviewing r165283. llvm-svn: 166296
* [ms-inline asm] Set the MCTargetAsmParser as paring MS-style inline asm.Chad Rosier2012-10-191-0/+1
| | | | llvm-svn: 166293
* Remove const_casts by propagating constness down to called functions.Dmitri Gribenko2012-10-194-18/+16
| | | | llvm-svn: 166287
* Allow objc_requires_super to be used to check class methods as well.Jordan Rose2012-10-196-47/+48
| | | | | | | | | | | | | Also, unify ObjCShouldCallSuperDealloc and ObjCShouldCallSuperFinalize. The two have identical behavior and will never be active at the same time. There's one last simplification now, which is that if we see a call to [super foo] and we are currently in a method named 'foo', we will /unconditionally/ clear the ObjCShouldCallSuper flag, rather than check first to see if we're in a method where calling super is required. There's no reason to pay the extra lookup price here. llvm-svn: 166285
* Change VerifyDiagnosticConsumer so that it *must* contain at least one ↵Andy Gibbs2012-10-198-16/+114
| | | | | | | | | | "expected-*" directive. As a result, for test-cases that are not expected to generate any diagnostics, an additional directive "expected-no-diagnostics" has been implemented which can then be included in such test-cases. This new directive may not be used in conjunction with any other "expected-*" directive. This change was initially proposed as a solution to the problem highlighted by check-in r164677, i.e. that -verify will not cause a test-case failure where the compile command does not actually reference the file. Patch reviewed by David Blaikie. llvm-svn: 166281
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-19580-6/+619
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Fix directive parsing in VerifyDiagnosticConsumer so that it ensures that ↵Andy Gibbs2012-10-196-26/+38
| | | | | | | | "expected" is at the start of the word and will no longer accept typos such as "junkexpected-*" as a valid "expected-*" directive. A very few test-cases had to be amended to adhere to the new rule. Patch reviewed by David Blaikie. llvm-svn: 166279
* Revert r166268, this fix for a crash-on-invalid introduced a rejects-valid.Nick Lewycky2012-10-196-56/+16
| | | | | | Richard has an unreduced testcase to work with. llvm-svn: 166272
* [asan] update asan docs to explain more about linking and to mention full ↵Kostya Serebryany2012-10-191-2/+15
| | | | | | support for i386 Linux llvm-svn: 166271
* DR1511: A const volatile global does not implicitly get internal linkage like aRichard Smith2012-10-192-5/+9
| | | | | | const non-volatile global does. llvm-svn: 166269
* PR14124: When performing template instantiation of a qualified-id outside of aRichard Smith2012-10-196-16/+56
| | | | | | class, diagnose if the qualified-id instantiates to a non-static class member. llvm-svn: 166268
* Fix handling of the regparm attribute in the presence of classes with copyRafael Espindola2012-10-194-42/+69
| | | | | | | | | | | | | constructors. When I first moved regparm support to TargetInfo.cpp I tried to isolate it in classifyArgumentTypeWithReg, but it is actually a lot easier to flip the code around and check for regparm at the end of the decision tree. Without this refactoring classifyArgumentTypeWithReg would have to duplicate the logic about when to use non-byval indirect arguments. llvm-svn: 166266
* Teach getColumnNumber to use the line cache to get the start of the line if ↵Craig Topper2012-10-191-0/+11
| | | | | | its on the same line as the last call to getLineNumber. Prevents needing to scan backwards for the new line. Fixes PR14106. llvm-svn: 166265
* Reintroduce the TargetTransformInfo to the clang pass manager.Nadav Rotem2012-10-191-1/+5
| | | | llvm-svn: 166263
* clang/test/Index/annotate-comments.cpp: Relax the expression to be matched ↵NAKAMURA Takumi2012-10-191-4/+1
| | | | | | | | to -fms-compatibility. Then XFAIL can be removed. FYI, it can be reproduced with "c-index-test -std=c++11 -fms-compatibility". llvm-svn: 166261
* ASTWriter.cpp: Fix a warning. [-Wunused-variable]NAKAMURA Takumi2012-10-191-2/+1
| | | | llvm-svn: 166257
* Handle diamond inheritance in -Woverloaded-virtual.David Blaikie2012-10-192-13/+69
| | | | llvm-svn: 166254
* Fix typo in comment.Nick Lewycky2012-10-191-1/+1
| | | | llvm-svn: 166253
* Describe the new input-files block and its record, for llvm-bcanalyzer.Douglas Gregor2012-10-191-0/+3
| | | | llvm-svn: 166252
* Move the set of files to be validated in an AST file into the controlDouglas Gregor2012-10-198-163/+219
| | | | | | | | | | | | | block, so the input files are validated early on, before we've committed to loading the AST file. This (accidentally) fixed a but wherein the main file used to generate the AST file would *not* be validated by the existing validation logic. At the moment, this leads to some duplication of filenames between the source manager block and input-file blocks, as well as validation logic. This will be handled via an upcoming patch. llvm-svn: 166251
* clang/test/Index/annotate-comments.cpp: Mark this as XFAIL on msvc. ↵NAKAMURA Takumi2012-10-191-0/+3
| | | | | | Investigating. llvm-svn: 166250
* Revert r166223 and the subsequent commits that depend on it, r166230 & r166235.Argyrios Kyrtzidis2012-10-1812-132/+131
| | | | | | This seems to have introduced assertion hit when building compiler-rt. llvm-svn: 166245
* Fix up comment and invert order. Most simple check first.Eric Christopher2012-10-181-4/+6
| | | | llvm-svn: 166240
* Use the type as written when pretty-printing C-style casts. Patch by ↵Eli Friedman2012-10-182-7/+13
| | | | | | Grzegorz Jablonski. llvm-svn: 166237
* Add a new option for and disable column number information as thereEric Christopher2012-10-1812-6/+30
| | | | | | | | | | are no known current users of column info. Robustify and fix up a few tests in the process. Reduces the size of debug information by a small amount. Part of PR14106 llvm-svn: 166236
* Remove trailing comma.Eric Christopher2012-10-181-1/+1
| | | | llvm-svn: 166235
* Move OriginalDir from ASTReader to ModuleFile.Douglas Gregor2012-10-182-22/+13
| | | | llvm-svn: 166233
* [doc parsing] use getParamName to access parameter Fariborz Jahanian2012-10-186-30/+48
| | | | | | | for current(rewritten) comment and getParamNameAsWritten to access param name coming with \param marker. llvm-svn: 166231
* [Options] Make Option non clang specific.Michael J. Spencer2012-10-185-37/+35
| | | | llvm-svn: 166230
* Move the "RelocatablePCH" bit from the ASTReader to the module file.Douglas Gregor2012-10-183-13/+13
| | | | llvm-svn: 166229
* Move information about the "original file" from the ASTReader into theDouglas Gregor2012-10-183-31/+43
| | | | | | module files. llvm-svn: 166228
* Remove check which incorrectly suppressed printing an identifier in type ↵Eli Friedman2012-10-182-3/+5
| | | | | | printing. Patch by Benoit Perrot. llvm-svn: 166227
* Fix AST pretty-printing for C++ new expressions with placement arguments ↵Eli Friedman2012-10-182-1/+14
| | | | | | | | with default values. Based on patch by Grzegorz Jablonski. llvm-svn: 166226
* [Options] make Option a value type.Michael J. Spencer2012-10-189-99/+102
| | | | llvm-svn: 166223
* [ms-inline asm] Add a size argument to the LookupInlineAsmIdentifier() callback,Chad Rosier2012-10-182-4/+10
| | | | | | which will be used by the asm matcher in the near future. llvm-svn: 166221
* Fix Objective-C implicit property synthesis for C++ classes so we use valid Eli Friedman2012-10-184-40/+64
| | | | | | | | | | | source locations in places where it is necessary for diagnostics. By itself, this causes assertions, so while I'm here, also fix property synthesis for properties of C++ class type so we use so we properly set up a scope and mark variable declarations. <rdar://problem/12514189>. llvm-svn: 166219
* Emit diagnostics in chunks even when we're trying to print colored template ↵Benjamin Kramer2012-10-181-12/+15
| | | | | | | | diffs. char-by-char is really slow on an unbuffered stream. llvm-svn: 166218
* [ms-inline asm] Have the LookupInlineAsmIdentifier() callback function return aChad Rosier2012-10-181-19/+17
| | | | | | | *NamedDecl. In turn, build the expressions after we're finished parsing the asm. This avoids a crasher if the lookup fails. llvm-svn: 166213
OpenPOWER on IntegriCloud