CommentLexer: When proceeding with a typo corrected name don't clobber the token.

This would crash if the token is used in another diagnostic. PR18051.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196048 91177308-0d34-0410-b5e6-96231b3b80d8
Handle CC and NoReturn when instantiating members of class templates.

Before we were considering them only when instantiating templates.

This fixes pr18033.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196050 91177308-0d34-0410-b5e6-96231b3b80d8
Correct test to target 'unknown'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196060 91177308-0d34-0410-b5e6-96231b3b80d8
Fix inconsistent diag name

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196061 91177308-0d34-0410-b5e6-96231b3b80d8
Correct a user-visible static analyzer message typo

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196062 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: Fix excessive formatting caused by r195954.

Due to a bug in the patch, clang-format would more or less simply format
all multi-line comments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196080 91177308-0d34-0410-b5e6-96231b3b80d8
Driver: Factor gold support out into a function

AddGoldPlugin() is the same on gnutools and freebsd so avoid the
copy-and-paste duplicate code.

No change in functionality.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196096 91177308-0d34-0410-b5e6-96231b3b80d8
Using the proper set key when determining whether a SubsetSubject helper method has been previously generated.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196103 91177308-0d34-0410-b5e6-96231b3b80d8
Replacing custom subject application logic with table-generated logic. Affects: guarded_var, pt_guarded_var, guarded_by, pt_guarded_by, acquired_after and acquired_before. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196105 91177308-0d34-0410-b5e6-96231b3b80d8
Switching the ibaction attribute handler to the generalized handler. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196107 91177308-0d34-0410-b5e6-96231b3b80d8
Added an option to specify fallback style.

Summary:
Added -fallback-style option. Changed clang-format to stop searching
for .clang-format when an invalid file is found.

Reviewers: djasper, klimek

Reviewed By: djasper

CC: cfe-commits, klimek

Differential Revision: http://llvm-reviews.chandlerc.com/D2292

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196108 91177308-0d34-0410-b5e6-96231b3b80d8
The FieldDecl is already covered by the ValueDecl case, so it is being removed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196110 91177308-0d34-0410-b5e6-96231b3b80d8
NetBSD uses long derived size_t / ssize_t in all ARM ABIs.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196114 91177308-0d34-0410-b5e6-96231b3b80d8
Assume ARMv6 for NetBSD for now for strex/ldrex.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196115 91177308-0d34-0410-b5e6-96231b3b80d8
The __w64 attribute handler was more generically named, but only applied to __w64 specifically. Renamed and removed some unused code. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196116 91177308-0d34-0410-b5e6-96231b3b80d8
Rewriter: Output RewriteRope contents efficiently

This avoids allocation of temporary std::strings for file contents, instead
writing chunks directly to the output stream.

The old character-based B-tree iterator remains intact for the time being.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196119 91177308-0d34-0410-b5e6-96231b3b80d8
Re-enabled support for the Subjects for the weak attribute. This changes the diagnostic involved to be more accurate -- for C++ code, it will now report that weak applies to variables, functions or classes. Added additional test case for this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196120 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format vs plugin: bake clang-format.exe into the vsix

This makes the clang-format plugin self-contained. Instead of
requiring clang-format.exe to be available on the PATH, this
includes it in the plugin's installer (.vsix file) and runs it
from the install directory.

Differential Revision: http://llvm-reviews.chandlerc.com/D2281

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196122 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a typo in a comment: expasion -> expansion

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196123 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format vs plugin: use Alp's suggestion for getting the path

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196124 91177308-0d34-0410-b5e6-96231b3b80d8