Andy Gibbs
ac51de6ec2
Fix directive parsing in VerifyDiagnosticConsumer so that it ensures that "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
2012-10-19 12:36:49 +00:00
Nick Lewycky
2e3b716959
Revert r166268, this fix for a crash-on-invalid introduced a rejects-valid.
...
Richard has an unreduced testcase to work with.
llvm-svn: 166272
2012-10-19 08:08:02 +00:00
Kostya Serebryany
e0fc42580b
[asan] update asan docs to explain more about linking and to mention full support for i386 Linux
...
llvm-svn: 166271
2012-10-19 07:00:46 +00:00
Richard Smith
dc0ef4564f
DR1511: A const volatile global does not implicitly get internal linkage like a
...
const non-volatile global does.
llvm-svn: 166269
2012-10-19 06:37:48 +00:00
Richard Smith
b2d6df5c95
PR14124: When performing template instantiation of a qualified-id outside of a
...
class, diagnose if the qualified-id instantiates to a non-static class member.
llvm-svn: 166268
2012-10-19 06:32:17 +00:00
Rafael Espindola
703c47f807
Fix handling of the regparm attribute in the presence of classes with copy
...
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
2012-10-19 05:04:37 +00:00
Craig Topper
5e79ee087e
Teach getColumnNumber to use the line cache to get the start of the line if 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
2012-10-19 04:40:38 +00:00
Nadav Rotem
e9c233b1c5
Reintroduce the TargetTransformInfo to the clang pass manager.
...
llvm-svn: 166263
2012-10-19 04:15:32 +00:00
NAKAMURA Takumi
4edb74cf81
clang/test/Index/annotate-comments.cpp: Relax the expression to be matched 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
2012-10-19 03:27:50 +00:00
NAKAMURA Takumi
deca50f11c
ASTWriter.cpp: Fix a warning. [-Wunused-variable]
...
llvm-svn: 166257
2012-10-19 01:53:57 +00:00
David Blaikie
282c92a708
Handle diamond inheritance in -Woverloaded-virtual.
...
llvm-svn: 166254
2012-10-19 00:53:08 +00:00
Nick Lewycky
f20544aa52
Fix typo in comment.
...
llvm-svn: 166253
2012-10-19 00:47:07 +00:00
Douglas Gregor
108cb22dac
Describe the new input-files block and its record, for llvm-bcanalyzer.
...
llvm-svn: 166252
2012-10-19 00:45:00 +00:00
Douglas Gregor
72be390e13
Move the set of files to be validated in an AST file into the control
...
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
2012-10-19 00:38:02 +00:00
NAKAMURA Takumi
a9eebc3153
clang/test/Index/annotate-comments.cpp: Mark this as XFAIL on msvc. Investigating.
...
llvm-svn: 166250
2012-10-19 00:22:54 +00:00
Argyrios Kyrtzidis
f552d3841b
Revert r166223 and the subsequent commits that depend on it, r166230 & r166235.
...
This seems to have introduced assertion hit when building compiler-rt.
llvm-svn: 166245
2012-10-18 22:42:31 +00:00
Eric Christopher
56b8a200e1
Fix up comment and invert order. Most simple check first.
...
llvm-svn: 166240
2012-10-18 22:08:02 +00:00
Eli Friedman
dc29a28fd5
Use the type as written when pretty-printing C-style casts. Patch by Grzegorz Jablonski.
...
llvm-svn: 166237
2012-10-18 21:53:46 +00:00
Eric Christopher
a2f7eb7c52
Add a new option for and disable column number information as there
...
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
2012-10-18 21:52:18 +00:00
Eric Christopher
1adabcf3f5
Remove trailing comma.
...
llvm-svn: 166235
2012-10-18 21:52:10 +00:00
Douglas Gregor
451dffaf64
Move OriginalDir from ASTReader to ModuleFile.
...
llvm-svn: 166233
2012-10-18 21:47:16 +00:00
Fariborz Jahanian
9d2f1e753b
[doc parsing] use getParamName to access parameter
...
for current(rewritten) comment and getParamNameAsWritten
to access param name coming with \param marker.
llvm-svn: 166231
2012-10-18 21:42:42 +00:00
Michael J. Spencer
43897975cc
[Options] Make Option non clang specific.
...
llvm-svn: 166230
2012-10-18 21:36:01 +00:00
Douglas Gregor
6bdae4b7c1
Move the "RelocatablePCH" bit from the ASTReader to the module file.
...
llvm-svn: 166229
2012-10-18 21:31:35 +00:00
Douglas Gregor
e68c2cb502
Move information about the "original file" from the ASTReader into the
...
module files.
llvm-svn: 166228
2012-10-18 21:18:25 +00:00
Eli Friedman
4a11540c27
Remove check which incorrectly suppressed printing an identifier in type printing. Patch by Benoit Perrot.
...
llvm-svn: 166227
2012-10-18 20:58:58 +00:00
Eli Friedman
a6fdfaa595
Fix AST pretty-printing for C++ new expressions with placement arguments with default values.
...
Based on patch by Grzegorz Jablonski.
llvm-svn: 166226
2012-10-18 20:54:37 +00:00
Michael J. Spencer
842227a2e2
[Options] make Option a value type.
...
llvm-svn: 166223
2012-10-18 20:33:42 +00:00
Chad Rosier
b91b3f88ad
[ms-inline asm] Add a size argument to the LookupInlineAsmIdentifier() callback,
...
which will be used by the asm matcher in the near future.
llvm-svn: 166221
2012-10-18 20:27:06 +00:00
Eli Friedman
eaf3414979
Fix Objective-C implicit property synthesis for C++ classes so we use valid
...
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
2012-10-18 20:14:08 +00:00
Benjamin Kramer
fce09f139c
Emit diagnostics in chunks even when we're trying to print colored template diffs.
...
char-by-char is really slow on an unbuffered stream.
llvm-svn: 166218
2012-10-18 20:09:54 +00:00
Chad Rosier
791bbe298d
[ms-inline asm] Have the LookupInlineAsmIdentifier() callback function return a
...
*NamedDecl. In turn, build the expressions after we're finished parsing the
asm. This avoids a crasher if the lookup fails.
llvm-svn: 166213
2012-10-18 19:39:37 +00:00
Anna Zaks
92898a79eb
[analyzer] Ivar invalidation: identify properties declared in protocols.
...
llvm-svn: 166211
2012-10-18 19:17:57 +00:00
Anna Zaks
673d76b0bc
Factor CollectClassPropertyImplementations out of Sema into AST
...
This would make it possible for the analyzer to use the function.
llvm-svn: 166210
2012-10-18 19:17:53 +00:00
Fariborz Jahanian
e0586a574e
Patch for decl printer test of objective-c methods.
...
Patch by Dmitri Gribenko.
llvm-svn: 166209
2012-10-18 19:12:17 +00:00
Axel Naumann
dd433f0b2f
From Vassil Vassilev: enable Sema to deal with multiple ExternalSemaSources.
...
llvm-svn: 166208
2012-10-18 19:05:02 +00:00
Douglas Gregor
fad10d8568
Collapse the original file name and original file ID records into a
...
single record.
llvm-svn: 166206
2012-10-18 18:36:53 +00:00
Douglas Gregor
0aa21c98a6
Collapse the "version control revision/tag" AST file record into the
...
metadata record, which already had other version information. Clean up
the block info block along the way.
llvm-svn: 166204
2012-10-18 18:27:37 +00:00
Dmitri Gribenko
a83d529369
Fix more documentation comments in Comment.h
...
llvm-svn: 166203
2012-10-18 18:21:40 +00:00
Dmitri Gribenko
d0756e45a5
Expand the comment for DeclInfo::CurrentDecl.
...
llvm-svn: 166202
2012-10-18 18:18:26 +00:00
Douglas Gregor
4d3611ca82
Split the target options out into their own record within the AST
...
file's control block.
llvm-svn: 166195
2012-10-18 17:58:09 +00:00
Richard Smith
b6626748c2
DR1442: In a range-based for statement, namespace 'std' is not an associated
...
namespace.
llvm-svn: 166194
2012-10-18 17:56:02 +00:00
Chad Rosier
0eea516789
[ms-inline asm] Remove accidental commit.
...
llvm-svn: 166193
2012-10-18 17:51:43 +00:00
Fariborz Jahanian
a52fd9783f
Improve comment in couple of fields of DeclInfo.
...
llvm-svn: 166192
2012-10-18 17:32:05 +00:00
Fariborz Jahanian
673c5215e1
Fix this test to match recent addition of declaration tag.
...
llvm-svn: 166190
2012-10-18 17:19:41 +00:00
David Blaikie
12be639dfc
PR14021: Copy lookup results to ensure safe iteration.
...
Within the body of the loop the underlying map may be modified via
Sema::AddOverloadCandidate
-> Sema::CompareReferenceRelationship
-> Sema::RequireCompleteType
to avoid the use of invalid iterators the sequence is copied first.
A reliable, though large, test case is available - it will be reduced and
committed shortly.
Patch by Robert Muth. Review by myself, Nico Weber, and Rafael Espindola.
llvm-svn: 166188
2012-10-18 16:57:32 +00:00
Chad Rosier
ce2bcbf8c0
[ms-inline asm] Move most of the AsmParsing logic in clang back into the MC
...
layer. Use the new ParseMSInlineAsm() API and add an implementation of the
MCAsmParserSemaCallback interface.
llvm-svn: 166184
2012-10-18 15:49:40 +00:00
Andy Gibbs
40808197c0
Fix typo (test commit)
...
llvm-svn: 166181
2012-10-18 15:24:46 +00:00
Dmitri Gribenko
b2b6a9e359
Un-XFAIL some tests for comment to XML conversion. This reverts r166151 and
...
fixes the tests for builds without libxml2.
llvm-svn: 166179
2012-10-18 14:33:01 +00:00
Abramo Bagnara
4a91458ce6
Fixed some corner cases due to implicit int TypeLoc and simplified the logic.
...
llvm-svn: 166174
2012-10-18 08:29:37 +00:00