Fix warning in Altivec code when building with GCC 4.8.2 on Ubuntu 14.04.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220855 91177308-0d34-0410-b5e6-96231b3b80d8
CodeGen: add __readfsdword builtin

The Windows NT SDK uses __readfsdword and declares it as a compiler provided
builtin (#pragma intrinsic(__readfsword).  Because intrin.h is not referenced
by winnt.h, it is not possible to provide an out-of-line definition for the
intrinsic.  Provide a proper compiler builtin definition.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220859 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: [JS] Support more regex literals.

Previously a regex-literal containing "/*" would through clang-format
off, e.g.:
  var regex = /\/*$/;

Would lead to none of the following code to be formatted.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220860 91177308-0d34-0410-b5e6-96231b3b80d8
test: generalise the test matching

The value names may change in different builds, use pattern based tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220861 91177308-0d34-0410-b5e6-96231b3b80d8
Enable display of compiler diagnostics in clang-tidy.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220862 91177308-0d34-0410-b5e6-96231b3b80d8
Refactor libTooling to reduce required dependencies.

This moves classes for storing and applying replacements to separate
files. These classes specifically are used by clang-format which doesn't
have any other dependencies on clangAST. Thereby, the size of
clang-format's binary can be cut roughly in half and its build time sped
up.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220867 91177308-0d34-0410-b5e6-96231b3b80d8
Follow-up to r216619: use isCXXCLassMember() instead of trying to
check the context ourselves when selectively allowing late-added
dll attributes on unused free functions and variables (PR20746)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220874 91177308-0d34-0410-b5e6-96231b3b80d8
Trim some includes. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220877 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: Cut more clangAST dependencies.

Hopefully fixing windows builds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220878 91177308-0d34-0410-b5e6-96231b3b80d8
Sink a #include while we're here. NFC.

Format.h doesn't use stack.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220879 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: Format line if invoked on the trailing newline.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220883 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] clangToolingCore requires clangLex.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220889 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Add dependencies on clangToolingCore.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220890 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Prune redundant libdeps.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220893 91177308-0d34-0410-b5e6-96231b3b80d8
Remove some duplicate functions from the Parser class. Identical functions already exist in the clang namespace from Sema/Ownership.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220896 91177308-0d34-0410-b5e6-96231b3b80d8
Remove the last couple uses of the ExprArg(just Expr*) typedef in Parser.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220897 91177308-0d34-0410-b5e6-96231b3b80d8
[autoconf] Add clangToolingCore.a to Makefile(s) for static build w/o libclang.dll.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220904 91177308-0d34-0410-b5e6-96231b3b80d8
Update contact person in Open Projects webpage for copy-paste detection. From Per Viberg to Daniel Marjamäki.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220905 91177308-0d34-0410-b5e6-96231b3b80d8
[analyzer] Updated tests for ZeroAllocDereference checker.

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