summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fixes location of overriding declaration with no commentFariborz Jahanian2012-10-155-16/+21
| | | | | | of their own. llvm-svn: 165972
* Revert r164907 and r164902 (+ follow-ups). They broke building on 10.6.Nico Weber2012-10-1511-153/+28
| | | | | | See PR14013. llvm-svn: 165962
* Move the Attributes::Builder outside of the Attributes class and into its ↵Bill Wendling2012-10-156-14/+14
| | | | | | own class named AttrBuilder. No functionality change. llvm-svn: 165961
* [ms-inline asm] Rework the front-end to use the API introduced in r165946.Chad Rosier2012-10-152-219/+181
| | | | | | | | | | | | | | | | | | | -The front-end now builds a single assembly string and feeds it to the AsmParser. The front-end iterates on a per statement basis by calling the ParseStatement() function. Please note, the calling of ParseStatement() and and any notion of MCAsmParsedOperands will be sunk into the MC layer in the near future. I plan to expose more basic APIs such as getClobbers, etc. -The enumeration of the AsmString expressions have been reworked to use SMLocs rather than assembly Pieces, which were being parsed in the front-end. -The test case, t8(), was modified due to r129223. I'll have to find a way to work around things such as these. Sorry for the large commit, but breaking this in multiple smaller commits proved too irritating. llvm-svn: 165957
* structured document comment: patch to provide comment for overriding functionFariborz Jahanian2012-10-157-8/+112
| | | | | | | template when comment is comming from overridden declaration. // rdar://12378793 llvm-svn: 165953
* Teach TargetInfo to hold on to the TargetOptions with which it wasDouglas Gregor2012-10-156-16/+31
| | | | | | created. llvm-svn: 165943
* [asan] make AddressSanitizer to be a FunctionPass instead of ModulePass. ↵Kostya Serebryany2012-10-151-1/+1
| | | | | | clang part: for FunctionPass we need to run asan at a different point, otherwise it will run before inlining llvm-svn: 165937
* Only report first error when no compilation database is found.Daniel Jasper2012-10-151-2/+7
| | | | | Review: http://llvm-reviews.chandlerc.com/D62 llvm-svn: 165933
* Use enum values instead of magic numbers for indexing into the attribute list.Bill Wendling2012-10-154-7/+14
| | | | llvm-svn: 165925
* Introduce the notion of excluded headers into the module mapDouglas Gregor2012-10-158-39/+126
| | | | | | | | description. Previously, one could emulate this behavior by placing the header in an always-unavailable submodule, but Argyrios guilted me into expressing this idea properly. llvm-svn: 165921
* Attributes RewriteBill Wendling2012-10-157-16/+28
| | | | | | | | Convert the uses of the Attributes class over to the new format. The Attributes::get method call now takes an LLVM context so that the attributes object can be uniquified and stored. llvm-svn: 165918
* At -O0, emit an @llvm.trap() call at the end of a value-returning function whichRichard Smith2012-10-152-3/+11
| | | | | | fails to return a value, to make debugging this issue easier. llvm-svn: 165914
* Make sure temporary files are deleted when recovering from a crash when ↵Benjamin Kramer2012-10-141-0/+1
| | | | | | compiling modules. llvm-svn: 165911
* Delete temporary output files when an error occurs during PCH reading.Benjamin Kramer2012-10-142-0/+2
| | | | | | | | This reduces the spam make test leaves behind in /tmp. The assert isn't particularly useful because it's not run with -disable-free (the default when using the clang driver) but should cover all -cc1 tests. llvm-svn: 165910
* Simplify code. No functionality change.Benjamin Kramer2012-10-141-10/+4
| | | | llvm-svn: 165905
* Remove operator cast method in favor of querying with the correct method.Bill Wendling2012-10-141-3/+5
| | | | llvm-svn: 165900
* Use the Builder to create the stack alignment attribute.Bill Wendling2012-10-141-2/+3
| | | | llvm-svn: 165888
* "Implement" codegen support for __noop().Nico Weber2012-10-132-0/+16
| | | | | | | Eli discovered that __noop's sema behavior also needs some love. I filed PR14081 for that and intend to improve it. llvm-svn: 165886
* Simplify. Suggestion by Sean Silva.Nico Weber2012-10-131-11/+3
| | | | llvm-svn: 165885
* [analyzer] Remove the "direct bindings only" Environment lookup.Jordan Rose2012-10-133-20/+6
| | | | | | | | | | | | This was only used by OSAtomicChecker and makes it more difficult to update values for expressions that the environment may look through instead (it's not the same as IgnoreParens). With this gone, we can have bindExpr bind to the inner expression that getSVal will find. Groundwork for <rdar://problem/12137950> llvm-svn: 165866
* [analyzer] Remove unneeded 'inlineCall' checker callback.Jordan Rose2012-10-133-62/+3
| | | | | | | | | | | | | I believe the removed assert in CheckerManager says it best: InlineCall is a special hacky callback to allow intrusive evaluation of the call (which simulates inlining). It is currently only used by OSAtomicChecker and should go away at some point. OSAtomicChecker has gone away; inlineCall can now go away as well! llvm-svn: 165865
* Update for r165858.Chad Rosier2012-10-131-3/+4
| | | | llvm-svn: 165859
* [ms-inline asm] Remove a bunch of parsing code from the front-end.Chad Rosier2012-10-121-21/+1
| | | | llvm-svn: 165851
* Add TargetInfo for r600.Eli Friedman2012-10-121-0/+68
| | | | | | Patch by Tom Stellard. llvm-svn: 165850
* Make -mms-bitfields behave consistently.Eli Friedman2012-10-129-13/+43
| | | | | | Patch by Jeremiah Zanin. llvm-svn: 165849
* -fcatch-undefined-behavior: Trap undefined behavior due to conversions to orRichard Smith2012-10-122-0/+177
| | | | | | | from a floating-point type where the source value is not in the range of representable values of the destination type. llvm-svn: 165843
* Move assertion to not crash tests.Ted Kremenek2012-10-121-2/+1
| | | | llvm-svn: 165842
* Silence static analyzer issue by documenting that in this contextTed Kremenek2012-10-121-0/+1
| | | | | | | that a DeclRefExpr can never return a null decl. We possibly should hoist this into getDecl() itself. llvm-svn: 165841
* Silence null dereference warnings by documenting context-specificTed Kremenek2012-10-121-0/+3
| | | | | | invariants using assertions. llvm-svn: 165840
* Further harden checking that scan-view isn't serving up pages outsideTed Kremenek2012-10-121-2/+2
| | | | | | the server root. llvm-svn: 165839
* Fix potential crash in ObjCContainersChecker by properly validatingTed Kremenek2012-10-121-0/+5
| | | | | | the number of arguments. llvm-svn: 165838
* Silence dead store warning. It is conceptually possible we willTed Kremenek2012-10-121-0/+1
| | | | | | | add more code that references SourceFile, so removing the dead store doesn't seem appropriate for the long term. llvm-svn: 165837
* Fix potential null deference in CFG printer.Ted Kremenek2012-10-121-2/+2
| | | | llvm-svn: 165836
* Remove dead store.Ted Kremenek2012-10-121-1/+1
| | | | llvm-svn: 165835
* Update for r165833.Chad Rosier2012-10-121-9/+5
| | | | llvm-svn: 165834
* Fix -ast-print for uses of operator->.Eli Friedman2012-10-122-0/+23
| | | | | | Patch by Grzegorz Jablonski. llvm-svn: 165832
* Fix warnings introduced by r165826.DeLesley Hutchins2012-10-121-0/+2
| | | | llvm-svn: 165829
* Thread-safety analysis: support multiple thread-safety attributes onDeLesley Hutchins2012-10-122-0/+108
| | | | | | declarations. llvm-svn: 165826
* [ms-inline asm] Remove a bunch of parsing code from the front-end, which will beChad Rosier2012-10-122-65/+3
| | | | | | reimplemented in the AsmParser where it belongs. llvm-svn: 165825
* Add missing header from 165821Douglas Gregor2012-10-121-0/+2
| | | | llvm-svn: 165822
* Sanitize the names of modules determined based on the names of headersDouglas Gregor2012-10-124-6/+79
| | | | | | | or directories, to make sure that they are identifiers that are not keywords in any dialect. Fixes <rdar://problem/12489495>. llvm-svn: 165821
* Remove XFAIL,fix testBill Schmidt2012-10-121-2/+1
| | | | llvm-svn: 165819
* XFAIL pending further investigationBill Schmidt2012-10-121-39/+24
| | | | llvm-svn: 165818
* Fix typo correction of one qualified name to another.David Blaikie2012-10-129-12/+77
| | | | | | | | | | | | | | When suggesting "foo::bar" as a correction for "fob::bar" we mistakenly replaced only "bar" with "foo::bar" producing "fob::foo::bar" which was broken. This corrects that replacement in as many places as I could find & provides test cases for all those cases I could find a test case for. There are a couple that don't seem to be reachable (one looks entirely dead, the other just doesn't seem to ever get called with a namespace to namespace change). Review by Richard Smith ( http://llvm-reviews.chandlerc.com/D57 ). llvm-svn: 165817
* This patch addresses PR13948.Bill Schmidt2012-10-122-7/+90
| | | | | | | | | | | | For 64-bit PowerPC SVR4, an aggregate containing only one floating-point field (float, double, or long double) must be passed in a register as though just that field were present. This patch addresses the issue during Clang code generation by specifying in the ABIArgInfo for the argument that the underlying type is passed directly in a register. The included test case verifies flat and nested structs for the three data types. llvm-svn: 165816
* Have scan-view guard against serving up pages outside the root directory.Ted Kremenek2012-10-121-0/+5
| | | | llvm-svn: 165815
* Change (!ptr != 0) to (!ptr) to make the code more readable.Richard Trieu2012-10-121-1/+1
| | | | | | No functional change. llvm-svn: 165811
* Handle a "#pragma options align" inside a class.Argyrios Kyrtzidis2012-10-122-0/+10
| | | | llvm-svn: 165810
* Add dump support for comments coming fromFariborz Jahanian2012-10-121-5/+10
| | | | | | | overridden symbols. OK'ed off-line by Doug. // rdar://12378793 llvm-svn: 165807
* c-index-test.c: /* Use C style comment. */NAKAMURA Takumi2012-10-121-1/+1
| | | | llvm-svn: 165797
OpenPOWER on IntegriCloud