InclusionRewriter: Avoid duplicated BOM check

The lexer already knows its position in the file, so use that instead of
guessing it might be 3.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195910 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: Improve selective formatting of nested statements.

Previously, clang-format could create quite corrupt formattings if
individual lines of nested blocks (e.g. in "DEBUG({})" or lambdas) were
used. With this patch, it tries to extend the formatted regions to leave
around some reasonable format without always formatting the entire
surrounding statement.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195925 91177308-0d34-0410-b5e6-96231b3b80d8
Add missing intrinsic function vcombine_f64 for AArch64 NEON.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195937 91177308-0d34-0410-b5e6-96231b3b80d8
Add missing intrinsic function vbsl_f64 for AArch64 NEON.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195940 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the problem that the range check for scalar narrow shift is too wide.
E.g. the immediate value of vshrns_n_s16 is [1,16], which should be [1,8].


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195942 91177308-0d34-0410-b5e6-96231b3b80d8
AArch64: Two intrinsics are expected to return float64 not float32 in arm_neon.h


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195943 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: Fix bad indentation of nested blocks.

Before:
  DEBUG(  //
  { f(); });

After:
  DEBUG(  //
      { f(); });

Also add additional test to selected formatting of individual statements
in nested blocks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195952 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: Correctly handle Qt's Q_SLOTS.

This should fix llvm.org/PR17241. Maybe it sticks this time :-).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195953 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: Extends formatted ranges to subsequent lines comments.

Before:
  int aaaa;     // This line is formatted.
                // The comment continues ..
                // .. here.

Before:
  int aaaa; // This line is formatted.
            // The comment continues ..
            // .. here.

This fixes llvm.org/PR17914.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195954 91177308-0d34-0410-b5e6-96231b3b80d8
Enables support for custom subject lists for attributes. As a testbed, uses the custom subject for the ibaction attribute.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195960 91177308-0d34-0410-b5e6-96231b3b80d8
Added LanguageStandard::LS_JavaScript to gate all JS-specific parsing.

Summary:
Use LS_JavaScript for files ending with ".js". Added support for ">>>="
operator.

Reviewers: djasper, klimek

Reviewed By: djasper

CC: cfe-commits, klimek

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195961 91177308-0d34-0410-b5e6-96231b3b80d8
Fixes a possible assert in the custom SubsetSubject logic for the attr emitter.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195962 91177308-0d34-0410-b5e6-96231b3b80d8
Using a custom subject to reenable the Subjects line for the ns_bridged attribute. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195963 91177308-0d34-0410-b5e6-96231b3b80d8
Refactored the tls_model attribute to use a custom subset subject. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195964 91177308-0d34-0410-b5e6-96231b3b80d8
NetBSD uses signed wchar_t on ARM platforms.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195970 91177308-0d34-0410-b5e6-96231b3b80d8
add an additional test case for generic attributes

gcc treats [[gnu:const]], [[gnu::__const]], and [[gnu:__const__]] as all being
equivalent.  Add an additional test case to ensure that we do not miss the last
case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195982 91177308-0d34-0410-b5e6-96231b3b80d8
Update the LeakSanitizer documentation with a proper link.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195983 91177308-0d34-0410-b5e6-96231b3b80d8
Fix typo: s/Occurence/Occurrence/

This is a private class member so the fix shouldn't impact external projects.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195985 91177308-0d34-0410-b5e6-96231b3b80d8
Reenable ms inline asm test.

LLVM r196044 should make it pass.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196045 91177308-0d34-0410-b5e6-96231b3b80d8
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