[clang-tools-extra] r366400 - [clangd] Fix Fix -Wunused-lambda-capture after r366339

2019-07-17 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Jul 17 21:23:54 2019 New Revision: 366400 URL: http://llvm.org/viewvc/llvm-project?rev=366400=rev Log: [clangd] Fix Fix -Wunused-lambda-capture after r366339 Modified: clang-tools-extra/trunk/clangd/QueryDriverDatabase.cpp Modified:

r366044 - [PowerPC] Support -mabi=ieeelongdouble and -mabi=ibmlongdouble

2019-07-15 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Jul 15 00:25:11 2019 New Revision: 366044 URL: http://llvm.org/viewvc/llvm-project?rev=366044=rev Log: [PowerPC] Support -mabi=ieeelongdouble and -mabi=ibmlongdouble gcc PowerPC supports 3 representations of long double: * -mlong-double-64 long double has the same

r366013 - [Driver] Simplify AddLibgcc

2019-07-14 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Jul 14 00:16:13 2019 New Revision: 366013 URL: http://llvm.org/viewvc/llvm-project?rev=366013=rev Log: [Driver] Simplify AddLibgcc Modified: cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp Modified: cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp URL:

r366012 - [Driver] Simplify -lgcc & -lgcc_s

2019-07-14 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat Jul 13 23:46:46 2019 New Revision: 366012 URL: http://llvm.org/viewvc/llvm-project?rev=366012=rev Log: [Driver] Simplify -lgcc & -lgcc_s gcc defaults to -shared-libgcc in C++ mode. Letting getLibGccType() return SharedLibGcc simplifies the logic. Modified:

[clang-tools-extra] r365993 - Simplify with llvm::is_contained. NFC

2019-07-13 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat Jul 13 00:23:12 2019 New Revision: 365993 URL: http://llvm.org/viewvc/llvm-project?rev=365993=rev Log: Simplify with llvm::is_contained. NFC Modified: clang-tools-extra/trunk/clang-tidy/bugprone/AssertSideEffectCheck.cpp

r365981 - clang/test/Driver/fsanitize.c: Fix -fsanitize=vptr using default target

2019-07-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Jul 12 17:47:58 2019 New Revision: 365981 URL: http://llvm.org/viewvc/llvm-project?rev=365981=rev Log: clang/test/Driver/fsanitize.c: Fix -fsanitize=vptr using default target The default implementation of getSupportedSanitizers isn't able to turn on the vptr sanitizer,

r365901 - Delete dead stores

2019-07-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Jul 12 07:04:34 2019 New Revision: 365901 URL: http://llvm.org/viewvc/llvm-project?rev=365901=rev Log: Delete dead stores Modified: cfe/trunk/lib/CodeGen/CGCoroutine.cpp cfe/trunk/lib/Lex/Lexer.cpp cfe/trunk/lib/Sema/SemaDecl.cpp

r365898 - [Driver] Delete dead code

2019-07-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Jul 12 06:21:58 2019 New Revision: 365898 URL: http://llvm.org/viewvc/llvm-project?rev=365898=rev Log: [Driver] Delete dead code Modified: cfe/trunk/lib/Driver/ToolChains/Arch/Mips.cpp cfe/trunk/lib/Driver/ToolChains/Clang.cpp Modified:

r365877 - [Driver] Delete --no-add-needed for RHEL7 or newer

2019-07-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Jul 11 23:46:47 2019 New Revision: 365877 URL: http://llvm.org/viewvc/llvm-project?rev=365877=rev Log: [Driver] Delete --no-add-needed for RHEL7 or newer This is really not needed. gcc driver doesn't add this option. BTW, since binutils 2.22, --no-copy-dt-needed-entries

[clang-tools-extra] r365874 - [test] Delete trailing spaces from YAML tests after D65566/r365869

2019-07-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Jul 11 23:01:37 2019 New Revision: 365874 URL: http://llvm.org/viewvc/llvm-project?rev=365874=rev Log: [test] Delete trailing spaces from YAML tests after D65566/r365869 Modified: clang-tools-extra/trunk/test/clang-include-fixer/merge.test

r365873 - [test] Delete trailing spaces from YAML tests

2019-07-11 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Jul 11 22:59:28 2019 New Revision: 365873 URL: http://llvm.org/viewvc/llvm-project?rev=365873=rev Log: [test] Delete trailing spaces from YAML tests Modified: cfe/trunk/unittests/Tooling/DiagnosticsYamlTest.cpp

r365872 - test/Driver/fsanitize.c: delete -target x86_64-linux-gnu from tests that should always be available

2019-07-11 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Jul 11 22:51:36 2019 New Revision: 365872 URL: http://llvm.org/viewvc/llvm-project?rev=365872=rev Log: test/Driver/fsanitize.c: delete -target x86_64-linux-gnu from tests that should always be available Follow-up of D64317/r365587. Modified:

r365866 - [X86][PowerPC] Support -mlong-double-128

2019-07-11 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Jul 11 19:32:15 2019 New Revision: 365866 URL: http://llvm.org/viewvc/llvm-project?rev=365866=rev Log: [X86][PowerPC] Support -mlong-double-128 This patch makes the driver option -mlong-double-128 available for X86 and PowerPC. The CC1 option -mlong-double-128 is

r365862 - [PowerPC] Default to -fomit-frame-pointer when optimization is enabled

2019-07-11 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Jul 11 19:14:08 2019 New Revision: 365862 URL: http://llvm.org/viewvc/llvm-project?rev=365862=rev Log: [PowerPC] Default to -fomit-frame-pointer when optimization is enabled NetBSD, Linux, CloudABI and Hurd already omit frame pointer for PowerPC. Make it do so for other

r365860 - [Driver] Refactor interaction between -f(no-)?omit-frame-pointer and -m(no-)?omit-leaf-frame-pointer

2019-07-11 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Jul 11 19:01:51 2019 New Revision: 365860 URL: http://llvm.org/viewvc/llvm-project?rev=365860=rev Log: [Driver] Refactor interaction between -f(no-)?omit-frame-pointer and -m(no-)?omit-leaf-frame-pointer Use a tri-state enum to represent shouldUseFramePointer() and

r365587 - [Driver] Add float-divide-by-zero back to supported sanitizers after D63793/rC365272

2019-07-09 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Jul 9 17:30:02 2019 New Revision: 365587 URL: http://llvm.org/viewvc/llvm-project?rev=365587=rev Log: [Driver] Add float-divide-by-zero back to supported sanitizers after D63793/rC365272 D63793 removed float-divide-by-zero from the "undefined" set but it failed to add

r365545 - [OpenMP] Simplify getFloatTypeSemantics

2019-07-09 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Jul 9 12:36:22 2019 New Revision: 365545 URL: http://llvm.org/viewvc/llvm-project?rev=365545=rev Log: [OpenMP] Simplify getFloatTypeSemantics When the float point representations are the same on the host and on the target device, (`>getLongDoubleFormat() ==

r365480 - [ItaniumMangle] Refactor long double/__float128 mangling and fix the mangled code

2019-07-09 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Jul 9 06:32:26 2019 New Revision: 365480 URL: http://llvm.org/viewvc/llvm-project?rev=365480=rev Log: [ItaniumMangle] Refactor long double/__float128 mangling and fix the mangled code In gcc PowerPC, long double has 3 mangling schemes: -mlong-double-64: `e`

r365412 - [X86][PPC] Support -mlong-double-64

2019-07-08 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Jul 8 17:27:43 2019 New Revision: 365412 URL: http://llvm.org/viewvc/llvm-project?rev=365412=rev Log: [X86][PPC] Support -mlong-double-64 -mlong-double-64 is supported on some ports of gcc (i386, x86_64, and ppc{32,64}). On many other targets, there will be an error:

r365106 - [PowerPC] Support constraint code "ww"

2019-07-03 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Jul 3 21:44:42 2019 New Revision: 365106 URL: http://llvm.org/viewvc/llvm-project?rev=365106=rev Log: [PowerPC] Support constraint code "ww" Summary: "ww" and "ws" are both constraint codes for VSX vector registers that hold scalar double data. "ww" is preferred for

r365006 - Change std::{lower, upper}_bound to llvm::{lower, upper}_bound or llvm::partition_point. NFC

2019-07-03 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Jul 3 01:13:17 2019 New Revision: 365006 URL: http://llvm.org/viewvc/llvm-project?rev=365006=rev Log: Change std::{lower,upper}_bound to llvm::{lower,upper}_bound or llvm::partition_point. NFC Modified: cfe/trunk/include/clang/Serialization/ContinuousRangeMap.h

[clang-tools-extra] r364720 - Cleanup: llvm::bsearch -> llvm::partition_point after r364719

2019-06-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Jun 30 04:19:56 2019 New Revision: 364720 URL: http://llvm.org/viewvc/llvm-project?rev=364720=rev Log: Cleanup: llvm::bsearch -> llvm::partition_point after r364719 Modified: clang-tools-extra/trunk/clangd/index/Symbol.cpp Modified:

r364720 - Cleanup: llvm::bsearch -> llvm::partition_point after r364719

2019-06-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Jun 30 04:19:56 2019 New Revision: 364720 URL: http://llvm.org/viewvc/llvm-project?rev=364720=rev Log: Cleanup: llvm::bsearch -> llvm::partition_point after r364719 Modified: cfe/trunk/lib/Tooling/Syntax/Tokens.cpp Modified: cfe/trunk/lib/Tooling/Syntax/Tokens.cpp

[clang-tools-extra] r364719 - [ADT] Implement llvm::bsearch() with std::partition_point()

2019-06-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Jun 30 02:17:59 2019 New Revision: 364719 URL: http://llvm.org/viewvc/llvm-project?rev=364719=rev Log: [ADT] Implement llvm::bsearch() with std::partition_point() Summary: Delete the begin-end form because the standard std::partition_point can be easily used as a

r364704 - [Driver] Fix style issues of --print-supported-cpus after D63105

2019-06-28 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Jun 28 18:24:36 2019 New Revision: 364704 URL: http://llvm.org/viewvc/llvm-project?rev=364704=rev Log: [Driver] Fix style issues of --print-supported-cpus after D63105 Reviewed By: ziangwan Differential Revision: https://reviews.llvm.org/D63822 Modified:

r364033 - Fix test/AST/ast-dump-records-json.cpp after ConstantExpr change in D63376

2019-06-21 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Jun 21 04:39:41 2019 New Revision: 364033 URL: http://llvm.org/viewvc/llvm-project?rev=364033=rev Log: Fix test/AST/ast-dump-records-json.cpp after ConstantExpr change in D63376 Modified: cfe/trunk/test/AST/ast-dump-records-json.cpp Modified:

r363649 - Revert D60974 "[clang-ifs] Clang Interface Stubs, first version."

2019-06-17 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Jun 17 22:52:39 2019 New Revision: 363649 URL: http://llvm.org/viewvc/llvm-project?rev=363649=rev Log: Revert D60974 "[clang-ifs] Clang Interface Stubs, first version." This reverts commit rC363626. clangIndex depends on clangFrontend. r363626 adds a dependency from

r362079 - Revert "asm goto: fix out-of-bounds read of Constraints after rC362045"

2019-05-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu May 30 03:05:52 2019 New Revision: 362079 URL: http://llvm.org/viewvc/llvm-project?rev=362079=rev Log: Revert "asm goto: fix out-of-bounds read of Constraints after rC362045" It was fixed by rC362062. Modified: cfe/trunk/lib/Parse/ParseStmtAsm.cpp Modified:

r362067 - asm goto: fix out-of-bounds read of Constraints after rC362045

2019-05-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu May 30 01:03:02 2019 New Revision: 362067 URL: http://llvm.org/viewvc/llvm-project?rev=362067=rev Log: asm goto: fix out-of-bounds read of Constraints after rC362045 When parsing goto labels, Names and Exprs are expanded but Constraints is not, this may cause a

r362059 - Mark CodeGen/asm-goto.c as x86 specific after r362045

2019-05-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 29 23:48:13 2019 New Revision: 362059 URL: http://llvm.org/viewvc/llvm-project?rev=362059=rev Log: Mark CodeGen/asm-goto.c as x86 specific after r362045 Modified: cfe/trunk/test/CodeGen/asm-goto.c Modified: cfe/trunk/test/CodeGen/asm-goto.c URL:

r362052 - [Driver] Render target options (e.g. -fuse-init-array) for -fembed-bitcode

2019-05-29 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 29 19:30:04 2019 New Revision: 362052 URL: http://llvm.org/viewvc/llvm-project?rev=362052=rev Log: [Driver] Render target options (e.g. -fuse-init-array) for -fembed-bitcode Modern ELF platforms use -fuse-init-array to emit .init_array instead of .ctors . ld.bfd

r362051 - [PowerPC] Set the default PLT mode on musl to Secure PLT

2019-05-29 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 29 19:13:15 2019 New Revision: 362051 URL: http://llvm.org/viewvc/llvm-project?rev=362051=rev Log: [PowerPC] Set the default PLT mode on musl to Secure PLT The musl libc only supports Secure PLT. Patch by A. Wilcox! Reviewed By: jhibbits Differential Revision:

r362050 - [Driver] -static-pie: add -z text

2019-05-29 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 29 18:55:43 2019 New Revision: 362050 URL: http://llvm.org/viewvc/llvm-project?rev=362050=rev Log: [Driver] -static-pie: add -z text This matches gcc -static-pie. The intention is to prevent dynamic relocations in read-only segments. In ld.bfd and gold, -z notext

r361710 - [Driver][RISCV] Simplify. NFC

2019-05-26 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun May 26 00:43:45 2019 New Revision: 361710 URL: http://llvm.org/viewvc/llvm-project?rev=361710=rev Log: [Driver][RISCV] Simplify. NFC Modified: cfe/trunk/lib/Driver/ToolChains/Arch/RISCV.cpp Modified: cfe/trunk/lib/Driver/ToolChains/Arch/RISCV.cpp URL:

r361365 - [PPC64] Fix PPC64TargetInfo ABI on clang side after D61950

2019-05-22 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 22 02:26:46 2019 New Revision: 361365 URL: http://llvm.org/viewvc/llvm-project?rev=361365=rev Log: [PPC64] Fix PPC64TargetInfo ABI on clang side after D61950 Modified: cfe/trunk/lib/Basic/Targets/PPC.h Modified: cfe/trunk/lib/Basic/Targets/PPC.h URL:

r361363 - [PPC64] Fix PPC64TargetInfo after D61950

2019-05-22 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 22 02:17:21 2019 New Revision: 361363 URL: http://llvm.org/viewvc/llvm-project?rev=361363=rev Log: [PPC64] Fix PPC64TargetInfo after D61950 Modified: cfe/trunk/lib/Basic/Targets/PPC.h Modified: cfe/trunk/lib/Basic/Targets/PPC.h URL:

r361355 - [PPC64] Parse -elfv1 -elfv2 when specified on target triple

2019-05-22 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 22 00:29:59 2019 New Revision: 361355 URL: http://llvm.org/viewvc/llvm-project?rev=361355=rev Log: [PPC64] Parse -elfv1 -elfv2 when specified on target triple Summary: For big-endian powerpc64, the default ABI is ELFv1. OpenPower ABI ELFv2 is supported when

[clang-tools-extra] r361113 - [clangd] Respect WarningsAsErrors configuration for clang-tidy

2019-05-18 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat May 18 21:19:14 2019 New Revision: 361113 URL: http://llvm.org/viewvc/llvm-project?rev=361113=rev Log: [clangd] Respect WarningsAsErrors configuration for clang-tidy This completes the fix for https://bugs.llvm.org/show_bug.cgi?id=41218. Reviewed By: sammccall Patch

[clang-tools-extra] r361112 - [clangd] Respect clang-tidy suppression comments

2019-05-18 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat May 18 21:06:52 2019 New Revision: 361112 URL: http://llvm.org/viewvc/llvm-project?rev=361112=rev Log: [clangd] Respect clang-tidy suppression comments This partially fixes https://bugs.llvm.org/show_bug.cgi?id=41218. Reviewed By: sammccall Patch by Nathan Ridge!

r360892 - Recommit [Object] Change object::SectionRef::getContents() to return Expected

2019-05-16 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu May 16 06:24:04 2019 New Revision: 360892 URL: http://llvm.org/viewvc/llvm-project?rev=360892=rev Log: Recommit [Object] Change object::SectionRef::getContents() to return Expected r360876 didn't fix 2 call sites in clang. Expected> may be better but use Expected for

r360495 - [cc1as] Change -compress-debug-sections= to use --

2019-05-10 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri May 10 18:14:50 2019 New Revision: 360495 URL: http://llvm.org/viewvc/llvm-project?rev=360495=rev Log: [cc1as] Change -compress-debug-sections= to use -- The double dash form is documented by GNU as, used by gcc, and accepted by llvm-mc. Modified:

r360408 - Delete write-only HasQualifiers after rC360370

2019-05-10 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu May 9 23:59:50 2019 New Revision: 360408 URL: http://llvm.org/viewvc/llvm-project?rev=360408=rev Log: Delete write-only HasQualifiers after rC360370 Modified: cfe/trunk/lib/AST/ExprConstant.cpp Modified: cfe/trunk/lib/AST/ExprConstant.cpp URL:

r360403 - Change -gz and -Wa, --compress-debug-sections to use gABI compression (SHF_COMPRESSED)

2019-05-09 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu May 9 19:08:21 2019 New Revision: 360403 URL: http://llvm.org/viewvc/llvm-project?rev=360403=rev Log: Change -gz and -Wa,--compress-debug-sections to use gABI compression (SHF_COMPRESSED) Since July 15, 2015 (binutils-gdb commit

r360022 - [X86] Move files to correct directories after D60552

2019-05-06 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon May 6 02:24:36 2019 New Revision: 360022 URL: http://llvm.org/viewvc/llvm-project?rev=360022=rev Log: [X86] Move files to correct directories after D60552 Added: cfe/trunk/lib/Headers/avx512bf16intrin.h cfe/trunk/lib/Headers/avx512vlbf16intrin.h

[clang-tools-extra] r359674 - [clangd] Delete an unused declaration

2019-05-01 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 1 05:16:37 2019 New Revision: 359674 URL: http://llvm.org/viewvc/llvm-project?rev=359674=rev Log: [clangd] Delete an unused declaration Modified: clang-tools-extra/trunk/clangd/index/BackgroundIndexStorage.cpp Modified:

r359662 - Change llvm-{objdump, readobj} -long-option to --long-option or well-known short options in tests. NFC

2019-05-01 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed May 1 02:30:45 2019 New Revision: 359662 URL: http://llvm.org/viewvc/llvm-project?rev=359662=rev Log: Change llvm-{objdump,readobj} -long-option to --long-option or well-known short options in tests. NFC Modified: cfe/trunk/test/CodeGen/split-debug-filename.c

[clang-tools-extra] r359428 - [clangd] Delete config.clangd_xpc_support from test/ to unbreak check-llvm-tools

2019-04-29 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Apr 29 02:36:54 2019 New Revision: 359428 URL: http://llvm.org/viewvc/llvm-project?rev=359428=rev Log: [clangd] Delete config.clangd_xpc_support from test/ to unbreak check-llvm-tools D61187 didn't delete config.clangd_xpc_support from test/ CLANGD_BUILD_XPC is defined

r359098 - Use llvm::stable_sort

2019-04-24 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Apr 24 07:43:05 2019 New Revision: 359098 URL: http://llvm.org/viewvc/llvm-project?rev=359098=rev Log: Use llvm::stable_sort Modified: cfe/trunk/lib/AST/DeclObjC.cpp cfe/trunk/lib/AST/RecordLayoutBuilder.cpp cfe/trunk/lib/AST/VTableBuilder.cpp

r358953 - [PowerPC] Fix test with -fno-discard-value-names after rC358949

2019-04-23 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Apr 23 00:39:23 2019 New Revision: 358953 URL: http://llvm.org/viewvc/llvm-project?rev=358953=rev Log: [PowerPC] Fix test with -fno-discard-value-names after rC358949 For the clang driver, -DLLVM_ENABLE_ASSERTIONS=off builds default to discard value names. Modified:

[clang-tools-extra] r358866 - [clangd] Support dependent bases in type hierarchy

2019-04-21 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Apr 21 18:38:53 2019 New Revision: 358866 URL: http://llvm.org/viewvc/llvm-project?rev=358866=rev Log: [clangd] Support dependent bases in type hierarchy Patch by Nathan Ridge! Dependent bases are handled heuristically, by replacing them with the class template that

r358729 - [analyzer] Fix -Wunused-local-typedef after rC358695

2019-04-18 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Apr 18 18:54:36 2019 New Revision: 358729 URL: http://llvm.org/viewvc/llvm-project?rev=358729=rev Log: [analyzer] Fix -Wunused-local-typedef after rC358695 Modified: cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp Modified:

r358661 - [Sema] Delete unused parameters/variables

2019-04-18 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Apr 18 05:35:02 2019 New Revision: 358661 URL: http://llvm.org/viewvc/llvm-project?rev=358661=rev Log: [Sema] Delete unused parameters/variables Modified: cfe/trunk/lib/Sema/SemaDecl.cpp Modified: cfe/trunk/lib/Sema/SemaDecl.cpp URL:

r358544 - [Driver] Simplify -g level computation and its interaction with -gsplit-dwarf

2019-04-16 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Apr 16 18:46:27 2019 New Revision: 358544 URL: http://llvm.org/viewvc/llvm-project?rev=358544=rev Log: [Driver] Simplify -g level computation and its interaction with -gsplit-dwarf Summary: When -gsplit-dwarf is used together with other -g options, in most cases the

[clang-tools-extra] r358094 - [clangd] Use #if CLANGD_BUILD_XPC because it may be defined as 0

2019-04-10 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Apr 10 08:45:54 2019 New Revision: 358094 URL: http://llvm.org/viewvc/llvm-project?rev=358094=rev Log: [clangd] Use #if CLANGD_BUILD_XPC because it may be defined as 0 Modified: clang-tools-extra/trunk/clangd/Transport.h Modified:

r357562 - [libclang][test] Suppress annoying 'LIBCLANG TOOLING ERROR' output

2019-04-03 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Apr 3 00:25:04 2019 New Revision: 357562 URL: http://llvm.org/viewvc/llvm-project?rev=357562=rev Log: [libclang][test] Suppress annoying 'LIBCLANG TOOLING ERROR' output check-all invokes check-clang-python which prints the annoying message: LIBCLANG TOOLING ERROR:

r357359 - Range-style std::find{,_if} -> llvm::find{,_if}. NFC

2019-03-31 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Mar 31 01:48:19 2019 New Revision: 357359 URL: http://llvm.org/viewvc/llvm-project?rev=357359=rev Log: Range-style std::find{,_if} -> llvm::find{,_if}. NFC Modified: cfe/trunk/include/clang/AST/DeclContextInternals.h

r357348 - [cmake] Change deprecated $ to $. NFC

2019-03-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat Mar 30 07:38:51 2019 New Revision: 357348 URL: http://llvm.org/viewvc/llvm-project?rev=357348=rev Log: [cmake] Change deprecated $ to $. NFC See rL357338 for a similar change. The informational expression $ has been deprecated since CMake 3.0 Modified:

r357151 - Fix tests after rC357150

2019-03-28 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Mar 28 01:41:17 2019 New Revision: 357151 URL: http://llvm.org/viewvc/llvm-project?rev=357151=rev Log: Fix tests after rC357150 Modified: cfe/trunk/test/Driver/cuda-unsupported-debug-options.cu cfe/trunk/test/Driver/openmp-unsupported-debug-options.c Modified:

r357150 - [Driver] Allow -gsplit-dwarf on ELF OSes other than Linux and Fuchsia

2019-03-28 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Mar 28 01:24:00 2019 New Revision: 357150 URL: http://llvm.org/viewvc/llvm-project?rev=357150=rev Log: [Driver] Allow -gsplit-dwarf on ELF OSes other than Linux and Fuchsia In gcc, -gsplit-dwarf is handled in gcc/gcc.c as a spec (ASM_FINAL_SPEC): objcopy --extract-dwo +

r357001 - [CodeGen] Delete never used LValueAlign

2019-03-26 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Mar 26 08:39:45 2019 New Revision: 357001 URL: http://llvm.org/viewvc/llvm-project?rev=357001=rev Log: [CodeGen] Delete never used LValueAlign It was added by rC176658 but never used since then. Modified: cfe/trunk/lib/CodeGen/CGAtomic.cpp Modified:

[clang-tools-extra] r356887 - [pp-trace] Try fixing MSVC C2248 after rCTE356849

2019-03-25 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Mar 25 04:40:11 2019 New Revision: 356887 URL: http://llvm.org/viewvc/llvm-project?rev=356887=rev Log: [pp-trace] Try fixing MSVC C2248 after rCTE356849 Modified: clang-tools-extra/trunk/pp-trace/PPTrace.cpp Modified: clang-tools-extra/trunk/pp-trace/PPTrace.cpp

[clang-tools-extra] r356851 - [pp-trace] Delete redundant clang::

2019-03-24 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Mar 24 00:31:21 2019 New Revision: 356851 URL: http://llvm.org/viewvc/llvm-project?rev=356851=rev Log: [pp-trace] Delete redundant clang:: And clarify command line options Modified: clang-tools-extra/trunk/docs/pp-trace.rst

[clang-tools-extra] r356850 - [pp-trace] Wrap code in clang::pp_trace

2019-03-24 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Mar 24 00:21:32 2019 New Revision: 356850 URL: http://llvm.org/viewvc/llvm-project?rev=356850=rev Log: [pp-trace] Wrap code in clang::pp_trace Modified: clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.cpp clang-tools-extra/trunk/pp-trace/PPCallbacksTracker.h

[clang-tools-extra] r356849 - [pp-trace] Modernize the code

2019-03-24 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat Mar 23 23:55:08 2019 New Revision: 356849 URL: http://llvm.org/viewvc/llvm-project?rev=356849=rev Log: [pp-trace] Modernize the code Use InitLLVM and WithColor Delete PPTraceConsumer, add the callback in PPTraceAction Migrae to tooling::createExecutorFromCommandLineArgs

[clang-tools-extra] r356366 - [pp-trace] Delete -ignore and add a new option -callbacks

2019-03-18 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Mar 18 06:30:17 2019 New Revision: 356366 URL: http://llvm.org/viewvc/llvm-project?rev=356366=rev Log: [pp-trace] Delete -ignore and add a new option -callbacks Summary: -ignore specifies a list of PP callbacks to ignore. It cannot express a whitelist, which may be more

r356005 - Delete unused declaration of DeclContextPrintAction after the removal of -print-decl-contexts by D52529

2019-03-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Mar 12 20:22:33 2019 New Revision: 356005 URL: http://llvm.org/viewvc/llvm-project?rev=356005=rev Log: Delete unused declaration of DeclContextPrintAction after the removal of -print-decl-contexts by D52529 Modified:

[clang-tools-extra] r355188 - Fix file headers. NFC

2019-03-01 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Mar 1 01:52:53 2019 New Revision: 355188 URL: http://llvm.org/viewvc/llvm-project?rev=355188=rev Log: Fix file headers. NFC Modified: clang-tools-extra/trunk/change-namespace/tool/ClangChangeNamespace.cpp clang-tools-extra/trunk/clang-doc/Generators.cpp

r355176 - Fix file headers. NFC

2019-02-28 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Feb 28 22:49:51 2019 New Revision: 355176 URL: http://llvm.org/viewvc/llvm-project?rev=355176=rev Log: Fix file headers. NFC Modified: cfe/trunk/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp cfe/trunk/lib/ARCMigrate/TransformActions.cpp

r353697 - Format isInSystemMacro after D55782

2019-02-11 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Feb 11 05:30:04 2019 New Revision: 353697 URL: http://llvm.org/viewvc/llvm-project?rev=353697=rev Log: Format isInSystemMacro after D55782 Modified: cfe/trunk/include/clang/Basic/SourceManager.h Modified: cfe/trunk/include/clang/Basic/SourceManager.h URL:

r353635 - Use llvm::is_contained. NFC

2019-02-09 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat Feb 9 21:54:57 2019 New Revision: 353635 URL: http://llvm.org/viewvc/llvm-project?rev=353635=rev Log: Use llvm::is_contained. NFC Modified: cfe/trunk/lib/ARCMigrate/ARCMT.cpp cfe/trunk/lib/AST/RecordLayoutBuilder.cpp cfe/trunk/lib/Basic/TargetInfo.cpp

[clang-tools-extra] r353415 - [ELF] Format lines inadvertently indented by rCTE353380

2019-02-07 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Feb 7 07:38:14 2019 New Revision: 353415 URL: http://llvm.org/viewvc/llvm-project?rev=353415=rev Log: [ELF] Format lines inadvertently indented by rCTE353380 Modified: clang-tools-extra/trunk/clangd/SourceCode.h Modified:

r352872 - [libclang] Fix -DBUILD_SHARED_LIBS=on build after rC352803

2019-02-01 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Feb 1 06:31:01 2019 New Revision: 352872 URL: http://llvm.org/viewvc/llvm-project?rev=352872=rev Log: [libclang] Fix -DBUILD_SHARED_LIBS=on build after rC352803 Modified: cfe/trunk/tools/libclang/CMakeLists.txt Modified: cfe/trunk/tools/libclang/CMakeLists.txt

[clang-tools-extra] r351306 - [clangd] Fix XPC after rCTE351280

2019-01-16 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Jan 16 00:13:15 2019 New Revision: 351306 URL: http://llvm.org/viewvc/llvm-project?rev=351306=rev Log: [clangd] Fix XPC after rCTE351280 Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp URL:

[clang-tools-extra] r350040 - [clangd] Delete stray semicolon. NFC

2018-12-23 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Dec 23 19:19:53 2018 New Revision: 350040 URL: http://llvm.org/viewvc/llvm-project?rev=350040=rev Log: [clangd] Delete stray semicolon. NFC Modified: clang-tools-extra/trunk/clangd/Function.h Modified: clang-tools-extra/trunk/clangd/Function.h URL:

[clang-tools-extra] r350037 - [clangd] Delete trailing ; NFC

2018-12-23 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Dec 23 14:20:34 2018 New Revision: 350037 URL: http://llvm.org/viewvc/llvm-project?rev=350037=rev Log: [clangd] Delete trailing ; NFC Modified: clang-tools-extra/trunk/clangd/TUScheduler.h Modified: clang-tools-extra/trunk/clangd/TUScheduler.h URL:

r349259 - [libclang] Add dependency on clangSerialization to unbreak -DBUILD_SHARED_LIBS=1 build after rC349237

2018-12-15 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat Dec 15 00:54:06 2018 New Revision: 349259 URL: http://llvm.org/viewvc/llvm-project?rev=349259=rev Log: [libclang] Add dependency on clangSerialization to unbreak -DBUILD_SHARED_LIBS=1 build after rC349237 Frontend headers have undefined reference on the symbol

[clang-tools-extra] r348916 - Add explicit dependency on clangSerialization after rC348911

2018-12-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Dec 12 00:25:16 2018 New Revision: 348916 URL: http://llvm.org/viewvc/llvm-project?rev=348916=rev Log: Add explicit dependency on clangSerialization after rC348911 Modified: clang-tools-extra/trunk/change-namespace/CMakeLists.txt

r348915 - Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build

2018-12-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Wed Dec 12 00:02:18 2018 New Revision: 348915 URL: http://llvm.org/viewvc/llvm-project?rev=348915=rev Log: Add explicit dependency on clangSerialization for a bunch of components to fix -DBUILD_SHARED_LIBS=on build This is a more thorough fix of rC348911. The story about

r348911 - [CodeGen] Fix -DBUILD_SHARED_LIBS=on build after rC348907

2018-12-11 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Dec 11 22:07:33 2018 New Revision: 348911 URL: http://llvm.org/viewvc/llvm-project?rev=348911=rev Log: [CodeGen] Fix -DBUILD_SHARED_LIBS=on build after rC348907 Modified: cfe/trunk/lib/CodeGen/CMakeLists.txt Modified: cfe/trunk/lib/CodeGen/CMakeLists.txt URL:

r348777 - ComputeLineNumbers: delete SSE2 vectorization

2018-12-10 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Dec 10 10:10:35 2018 New Revision: 348777 URL: http://llvm.org/viewvc/llvm-project?rev=348777=rev Log: ComputeLineNumbers: delete SSE2 vectorization Summary: SSE2 vectorization was added in 2012, but it is 2018 now and I can't observe any performance boost (testing

r348709 - SourceManager: insert(make_pair(..)) -> try_emplace. NFC

2018-12-08 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat Dec 8 17:46:01 2018 New Revision: 348709 URL: http://llvm.org/viewvc/llvm-project?rev=348709=rev Log: SourceManager: insert(make_pair(..)) -> try_emplace. NFC Modified: cfe/trunk/lib/Basic/SourceManager.cpp Modified: cfe/trunk/lib/Basic/SourceManager.cpp URL:

[clang-tools-extra] r348066 - [clangd] Recommit the "AnyScope" changes in requests.json by rCTE347753 (reverted by rCTE347792)

2018-11-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Nov 30 17:57:15 2018 New Revision: 348066 URL: http://llvm.org/viewvc/llvm-project?rev=348066=rev Log: [clangd] Recommit the "AnyScope" changes in requests.json by rCTE347753 (reverted by rCTE347792) This fixes IndexBenchmark tests. Modified:

r348065 - [Basic] Move DiagnosticsEngine::dump from .h to .cpp

2018-11-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Nov 30 17:43:05 2018 New Revision: 348065 URL: http://llvm.org/viewvc/llvm-project?rev=348065=rev Log: [Basic] Move DiagnosticsEngine::dump from .h to .cpp The two LLVM_DUMP_METHOD methods have a undefined reference on clang::DiagnosticsEngine::DiagStateMap::dump.

r348053 - Revert "Revert r347417 "Re-Reinstate 347294 with a fix for the failures.""

2018-11-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Nov 30 15:41:18 2018 New Revision: 348053 URL: http://llvm.org/viewvc/llvm-project?rev=348053=rev Log: Revert "Revert r347417 "Re-Reinstate 347294 with a fix for the failures."" It seems the two failing tests can be simply fixed after r348037 Fix 3 cases in

r348039 - Revert r347417 "Re-Reinstate 347294 with a fix for the failures."

2018-11-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Nov 30 13:26:09 2018 New Revision: 348039 URL: http://llvm.org/viewvc/llvm-project?rev=348039=rev Log: Revert r347417 "Re-Reinstate 347294 with a fix for the failures." Kept the "indirect_builtin_constant_p" test case in test/SemaCXX/constant-expression-cxx1y.cpp while

r348037 - [ExprConstant] Try fixing __builtin_constant_p after D54355 (rC347417)

2018-11-30 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Nov 30 13:15:41 2018 New Revision: 348037 URL: http://llvm.org/viewvc/llvm-project?rev=348037=rev Log: [ExprConstant] Try fixing __builtin_constant_p after D54355 (rC347417) Summary: Reinstate the original behavior (Success(false, E)) before D54355 when this branch is

r347895 - Simplify the __builtin_constant_p test that was used to catch rC347417 failure

2018-11-29 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Nov 29 10:26:39 2018 New Revision: 347895 URL: http://llvm.org/viewvc/llvm-project?rev=347895=rev Log: Simplify the __builtin_constant_p test that was used to catch rC347417 failure Reviewers: rsmith, void, shafik Reviewed By: void Subscribers: kristina, cfe-commits

r347529 - [CodeComplete] Simplify CodeCompleteConsumer.cpp, NFC

2018-11-25 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Nov 25 12:57:05 2018 New Revision: 347529 URL: http://llvm.org/viewvc/llvm-project?rev=347529=rev Log: [CodeComplete] Simplify CodeCompleteConsumer.cpp, NFC Use range-based for loops Use XStr.compare(YStr) < 0 Format misaligned code Modified:

r347508 - [CodeComplete] Delete unused variable in rC342449

2018-11-23 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Nov 23 16:41:13 2018 New Revision: 347508 URL: http://llvm.org/viewvc/llvm-project?rev=347508=rev Log: [CodeComplete] Delete unused variable in rC342449 Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp URL:

r347293 - [libclang] Unify getCursorDecl and getCursorParentDecl

2018-11-20 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Nov 20 00:00:00 2018 New Revision: 347293 URL: http://llvm.org/viewvc/llvm-project?rev=347293=rev Log: [libclang] Unify getCursorDecl and getCursorParentDecl They do the same thing, thus the latter (which has only 2 call sites) can be deleted. Modified:

r345992 - [analyzer] Fix diagnostics/explicit-suppression.cpp

2018-11-02 Thread Fangrui Song via cfe-commits
Author: maskray Date: Fri Nov 2 09:23:37 2018 New Revision: 345992 URL: http://llvm.org/viewvc/llvm-project?rev=345992=rev Log: [analyzer] Fix diagnostics/explicit-suppression.cpp *OI++ = *II++ is on line 670, not 668 Modified: cfe/trunk/test/Analysis/diagnostics/explicit-suppression.cpp

[clang-tools-extra] r345953 - [clangd] Really fix clang -Wimplicit-fallthrough

2018-11-02 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Nov 1 22:59:29 2018 New Revision: 345953 URL: http://llvm.org/viewvc/llvm-project?rev=345953=rev Log: [clangd] Really fix clang -Wimplicit-fallthrough The intention was to fall through to Function case in LLVM_ENABLE_ASSERTIONS=Off builds. Use #ifndef NDEBUG to fix

[clang-tools-extra] r345952 - [clangd] Fix clang -Wimplicit-fallthrough

2018-11-01 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Nov 1 21:23:50 2018 New Revision: 345952 URL: http://llvm.org/viewvc/llvm-project?rev=345952=rev Log: [clangd] Fix clang -Wimplicit-fallthrough Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp URL:

[clang-tools-extra] r345951 - Fix -Wimplicit-fallthrough warning in LLVM_ENABLE_ASSERTIONS=Off builds

2018-11-01 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Nov 1 21:17:17 2018 New Revision: 345951 URL: http://llvm.org/viewvc/llvm-project?rev=345951=rev Log: Fix -Wimplicit-fallthrough warning in LLVM_ENABLE_ASSERTIONS=Off builds Modified: clang-tools-extra/trunk/clang-tidy/cert/StrToNumCheck.cpp Modified:

r345950 - Fix -Wimplicit-fallthrough warning in LLVM_ENABLE_ASSERTIONS=Off builds

2018-11-01 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Nov 1 21:09:08 2018 New Revision: 345950 URL: http://llvm.org/viewvc/llvm-project?rev=345950=rev Log: Fix -Wimplicit-fallthrough warning in LLVM_ENABLE_ASSERTIONS=Off builds Modified: cfe/trunk/lib/StaticAnalyzer/Core/BasicValueFactory.cpp Modified:

r344859 - Use llvm::{all, any, none}_of instead std::{all, any, none}_of. NFC

2018-10-20 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sat Oct 20 10:53:42 2018 New Revision: 344859 URL: http://llvm.org/viewvc/llvm-project?rev=344859=rev Log: Use llvm::{all,any,none}_of instead std::{all,any,none}_of. NFC Modified: cfe/trunk/lib/AST/VTableBuilder.cpp cfe/trunk/lib/ASTMatchers/ASTMatchersInternal.cpp

[clang-tools-extra] r344256 - [clang-move] Remove clang:: qualifier

2018-10-11 Thread Fangrui Song via cfe-commits
Author: maskray Date: Thu Oct 11 09:09:26 2018 New Revision: 344256 URL: http://llvm.org/viewvc/llvm-project?rev=344256=rev Log: [clang-move] Remove clang:: qualifier Summary: The use sites are enclosed by `namespace clang`, so clang:: is not necessary. Many unqualified names have already been

r344098 - [Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..."

2018-10-09 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Oct 9 17:15:33 2018 New Revision: 344098 URL: http://llvm.org/viewvc/llvm-project?rev=344098=rev Log: [Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..." Summary: This is to accommodate a change in llvm/lib/Option/OptTable.cpp D51009

r344010 - [Index] Use locations to uniquify function-scope BindingDecl USR

2018-10-08 Thread Fangrui Song via cfe-commits
Author: maskray Date: Mon Oct 8 18:02:56 2018 New Revision: 344010 URL: http://llvm.org/viewvc/llvm-project?rev=344010=rev Log: [Index] Use locations to uniquify function-scope BindingDecl USR Summary: This makes BindingDecl's of the same name have different USRs, so that references can be

[clang-tools-extra] r343946 - [clangd] Migrate to LLVM STLExtras range API

2018-10-07 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Oct 7 10:21:08 2018 New Revision: 343946 URL: http://llvm.org/viewvc/llvm-project?rev=343946=rev Log: [clangd] Migrate to LLVM STLExtras range API Modified: clang-tools-extra/trunk/clangd/FileDistance.cpp clang-tools-extra/trunk/clangd/XRefs.cpp Modified:

  1   2   >