Dmitri Gribenko
d558b5238d
Cleanup \brief comment. Since it is a single paragraph, no need to save newlines there.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159325 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-28 01:38:21 +00:00
Eric Christopher
da970d2fe0
Fix grammar.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159321 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-28 01:20:05 +00:00
Bill Wendling
2a5d644bcf
Update the #include to find the DebugInfo.h in the correct place
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159315 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-28 00:30:19 +00:00
Dmitri Gribenko
f199b9cd4a
Teach \brief parser about commands that start a new paragraph implicitly
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159309 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-28 00:01:41 +00:00
Argyrios Kyrtzidis
af505c5822
Fix uninitialized variable use bug found by the clairvoyant static analyzer.
...
Commit::canReplaceText would not initialize its out 'Len' parameter before
returning true and it would be used uninitialized in Commit::replaceText.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159306 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 23:45:44 +00:00
Dmitri Gribenko
8bdb58a783
Attaching documentation comments to declarations: don't attach a comment to a declaration if there is a preprocessor directive between them.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159305 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 23:43:37 +00:00
Dmitri Gribenko
5676d32a23
Fix an infinite loop in comment lexer: we were not advancing in the input character stream when we saw a '<' that is not a start of an HTML tag.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159303 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 23:28:29 +00:00
Timur Iskhodzhanov
8771872ab7
Two more tests for PR13207 - wrong mangling of templates with back references [-cxx-abi microsoft]
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159296 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 21:53:00 +00:00
Eli Friedman
f4bcfa1b18
Propagate lvalue alignment into bitfields. Per report on cfe-dev.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159295 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 21:19:48 +00:00
Fariborz Jahanian
7c16d58f85
objective-c mrc: Issue warning for mrc, as is done for arc, when
...
property retains a block object as it could be on
the stack. // rdar://11761511
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159293 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 20:52:46 +00:00
Richard Smith
e1971a136a
Refactoring after r159290: don't hold onto and check a misleading QualType.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159292 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 20:29:39 +00:00
Richard Smith
83ea530f9d
Check for non-POD vararg argument type after default argument promotion, not
...
before, so we don't incorrectly think arguments of function type are non-POD.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159290 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 20:23:58 +00:00
Fariborz Jahanian
12d2cc71bf
patch to suggest 'static' function should be 'static inline'
...
when it appears to be unused and occurs in a header.
// rdar://11202617
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159282 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 19:43:29 +00:00
Rafael Espindola
8d852e35ad
Implement John McCall's review of r159212 other than the this pointer not
...
being updated. Will fix that in a second.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159280 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 18:18:05 +00:00
Rafael Espindola
0713d993cd
Fix a crash I introduced in r159212.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159279 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 17:44:39 +00:00
Dmitri Gribenko
962668d2c1
Remove unsigned and a pointer from a comment token (so that each token can have only one semantic string value attached to it), at a cost of adding an additional token.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159270 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 16:53:58 +00:00
Dmitri Gribenko
f5e0aeac8a
Comment lexer: counting backwards from token end is thought to be confusing. We already have a pointer to the beginning of the token, so use it to extract the text instead.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159269 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 16:30:35 +00:00
Dmitri Gribenko
1255e1b35e
Add a test for unterminated /* comments.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159267 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 16:05:49 +00:00
Axel Naumann
446ba14432
Fix for r159256 on Windows.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159262 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 11:42:56 +00:00
Chandler Carruth
4421e55fc3
Remove a completely unused and remarkably inaccurate list of test
...
directories from the cmake file. Dunno what the history is here, but
we're not using it.
More refactorings to come here.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159261 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 10:06:26 +00:00
Chandler Carruth
073b98e76b
Update the Clang CMake build to reflect the name change in LLVM r159258.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159260 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 09:49:07 +00:00
Axel Naumann
3ce42c37b0
From Vassil Vassilev:
...
add interface for removing a FileEntry from the cache.
Forces a re-read the contents from disk, e.g. because a tool (like cling) wants to pick up a modified file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159256 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 09:17:42 +00:00
Dmitri Gribenko
1e15e3b78c
Initialize RawComment::BriefTextValid in other constructor, too.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159253 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 05:48:36 +00:00
Daniel Jasper
2dc509d893
Introduce __has_feature(attribute_unused_on_fields) to determine whether
...
the current version of clang understands __attribute__((unused)) on
fields.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159252 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 05:12:34 +00:00
Richard Trieu
4375b084c3
Add missing words to manual.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159251 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 02:36:34 +00:00
Timur Iskhodzhanov
7249eb05c8
Add a few (currently failing) tests for the PR13207 (template mangling in the presence of back references).
...
I've added an extra FileCheck pass for that with an extra "CURRENT" prefix.
I've carefully chosed the CURRENT/CORRECT prefixes so they
a) are self-descriptive
b) have the same length so the mangling between the current and the correct version is obvious
Feel free to ask me to change the prefixes if you know a better alternative.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159250 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 02:11:40 +00:00
Richard Trieu
e59331ac34
Update documentation with regards to template type diffing.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159249 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 02:00:20 +00:00
Timur Iskhodzhanov
df438046c0
Add a few more test cases for the -cxx-abi microsoft mangler. Some of them were broken recently
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159248 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 01:38:25 +00:00
Dmitri Gribenko
c0b8324d6f
Simplify logic in BriefParser::Parse(), per Jordan's comment.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159247 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 01:17:34 +00:00
Dmitri Gribenko
c2cda0284a
Initialize RawCommentList::BriefTextValid when deserializing AST.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159246 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 00:57:00 +00:00
Jordan Rose
29299c6c98
[analyzer] RetainCountChecker: remove unused SelfOwn ArgEffect kind.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159245 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 00:51:18 +00:00
Jordan Rose
4715ed95e3
[analyzer] Remove unneeded helper function (it's in ASTContext.h)
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159244 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-27 00:51:16 +00:00
Chad Rosier
8decdee5fd
Whitespace.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159235 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 22:30:43 +00:00
Timur Iskhodzhanov
4285f84a5c
[Windows] Improve mangling of templates when back references are present
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159234 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 22:29:50 +00:00
Benjamin Kramer
92c4fd5c17
Enable -mcpu=native and -march=native for arm targets.
...
This is only implemented on linux at the moment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159232 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 22:20:06 +00:00
Daniel Jasper
7349cce2b3
Always use getDerived().shouldVisitImplicitCode() so it can be altered
...
in subclasses.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159231 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 22:15:38 +00:00
Chad Rosier
91cbbbf506
Whitespace.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159229 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 21:41:40 +00:00
Fariborz Jahanian
540f9ae102
preprocessing: gcc supports #line 0. So, treat this
...
as a gcc supported extension with usual treatment
with -pedantic (warn) and -pedantic-errors (error).
// rdar://11550996
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159226 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 21:19:20 +00:00
Andrew Trick
7bbf9d14cc
unit test tweak
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159225 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 21:15:49 +00:00
Richard Smith
4622fe85ab
Remove typedef which is unused after r159189.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159224 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 20:54:26 +00:00
Dmitri Gribenko
2d44d77fed
Implement a lexer for structured comments.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159223 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 20:39:18 +00:00
Manman Ren
5283c99365
X86: add GATHER intrinsics (AVX2) in Clang
...
Support the following intrinsics:
_mm_mask_i32gather_pd, _mm256_mask_i32gather_pd, _mm_mask_i64gather_pd
_mm256_mask_i64gather_pd, _mm_mask_i32gather_ps, _mm256_mask_i32gather_ps
_mm_mask_i64gather_ps, _mm256_mask_i64gather_ps
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159222 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 19:55:09 +00:00
Rafael Espindola
12582bdc2e
Fix a bug in my previous patch: If we are not doing a virtual call because
...
the member expression is qualified, call the method specified in the code,
not the most derived one we can find.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159219 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 19:18:25 +00:00
David Blaikie
37d2a00f4c
Remove spurious semicolons committed in r159216.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159218 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 18:52:09 +00:00
Richard Trieu
246b6aa676
Add template type diffing to Clang. This feature will provide a better
...
comparison between two templated types when they both appear in a diagnostic.
Type elision will remove indentical template arguments, which can be disabled
with -fno-elide-type. Cyan highlighting is applied to the differing types.
For more formatting, -fdiagnostic-show-template-tree will output the template
type as an indented text tree, with differences appearing inline. Template
tree works with or without type elision.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159216 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 18:18:47 +00:00
Andrew Trick
72c1a6a543
MachineBlockPlacement would prefer that clang lay out blocks in source order.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159215 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 18:13:12 +00:00
Dmitri Gribenko
7e0f1ee35f
Fix comment: refer to documentation comments in general, not just Doxygen comments.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159214 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 17:54:58 +00:00
Fariborz Jahanian
de376286f1
objc: adds diagnostic group to several old objc warnings.
...
// rdar://11741435 pr13184
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159213 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 17:47:42 +00:00
Rafael Espindola
0b4fe503ef
During codegen of a virtual call we would extract any casts in the expression
...
to see if we had an underlying final class or method, but we would then
use the cast type to do the call, resulting in a direct call to the wrong
method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159212 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 17:45:31 +00:00
Chad Rosier
7ed4f66328
[driver] Make -serialize-diagnostics (one dash) and alias for
...
--serialize-diagnostics.
rdar://11734800
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159208 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-26 16:57:41 +00:00