Skip to content

[driver] merge clang driver changes to master branch #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 384 commits into from
Feb 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
384 commits
Select commit Hold shift + click to select a range
bd990c3
Reland "[Driver] Update default sanitizer blacklist location"
petrhosek Jan 11, 2018
43db181
Revert "[Driver] Update default sanitizer blacklist location"
petrhosek Jan 11, 2018
998ea35
[Lex] Use WritableMemoryBuffer in ScratchBuffer.cpp
labath Jan 11, 2018
febf5cb
[RISCV] Add the RISCV target and compiler driver
asb Jan 11, 2018
fa79ef6
[Driver][RISCV] Fix r322276 by adding missing dummy crtbegin.o files …
asb Jan 11, 2018
a28cfce
[OpenCL] Reorder the CLK_sRGBx/sRGBA defines, NFC
svenvh Jan 11, 2018
f92bbd5
[Driver][RISCV] Fix r322276 for Windows (path separator issue)
asb Jan 11, 2018
f0382ad
[Driver][RISCV] Another Windows file separator fix for riscv32-toolch…
asb Jan 11, 2018
568cb88
Handle scoped_lockable objects being returned by value in C++17.
zygoloid Jan 11, 2018
ffd83ec
Make internal/private GVs implicitly dso_local.
espindola Jan 11, 2018
0420193
[WebAssembly] Remove `-allow-undefined-file wasm.syms` from linker args
sbc100 Jan 11, 2018
902a1d1
Add `__reference_binds_to_temporary` trait for checking safe referenc…
EricWF Jan 12, 2018
b4b2f3a
[Docs] Fix typo in toolchain documentation
topperc Jan 12, 2018
780143b
[ODRHash] Don't hash friend functions.
Weverything Jan 12, 2018
3ee4cc4
[CodeComplete] Add an option to omit results from the preamble.
sam-mccall Jan 12, 2018
ad3d09b
[WebAssembly] Support -stdlib=libc++ switch
sbc100 Jan 12, 2018
95cd7fb
[Lex] Avoid out-of-bounds dereference in LexAngledStringLiteral.
vsapsai Jan 12, 2018
a65cfe0
[OPENMP] Replace calls of getAssociatedStmt().
alexey-bataev Jan 12, 2018
1a586d3
Refactor handling of signext/zeroext in ABIArgInfo
asb Jan 12, 2018
6d538af
Disable test for Windows to fix Windows buildbots.
Weverything Jan 12, 2018
3fb45fc
Allocate and access NormalCleanupDest with the natural alignment of i32.
rjmccall Jan 12, 2018
bdecb5f
[analyzer] Don't flag strcpy of string literals into sufficiently lar…
haoNoQ Jan 12, 2018
baf72be
[DWARFv5] Have -gdwarf-5 generate MD5 checksums
pogo59 Jan 12, 2018
124ae53
When rebuilding an InitListExpr, don't give it a type.
zygoloid Jan 12, 2018
200c1f8
Fix test on Windows that was added in r322382.
dyung Jan 12, 2018
dc9d0e2
Try to suppress Windows testing again.
Weverything Jan 12, 2018
019ab6b
Remove unused addIfPresent function.
echristo Jan 13, 2018
a3e65d2
DR126: partially implement the const-correct rules for exception hand…
zygoloid Jan 13, 2018
f5335dc
Fix test/Driver/riscv32-toolchain.c for builds setting CLANG_DEFAULT_…
asb Jan 13, 2018
58416cd
[Sema] Fix crash for type-dependent base classes
jkorous-apple Jan 13, 2018
22417a2
[Driver] Add "did you mean?" suggestions to -cc1as
modocache Jan 13, 2018
8014b6d
[docs] Use monospace for PCH option flags
modocache Jan 13, 2018
1e128f6
[clang-format] [NFC] Remove comment
mzeren-vmw Jan 13, 2018
5e18126
Reland "[Driver] Update default sanitizer blacklist location"
petrhosek Jan 14, 2018
4647e40
[X86] Implement old kunpck intrinsics using vector ops on vXi1 instea…
topperc Jan 14, 2018
2edd657
Clang counterpart change for fuzzer FreeBSD support
krytarowski Jan 15, 2018
a73a299
[clang-format] Adds a FormatStyleSet
krasimirgg Jan 15, 2018
e0f57df
[RISCV] Implement RISCV ABI lowering
asb Jan 15, 2018
c024ae8
[OPENMP] Add codegen for `depend` clauses on `target` directive.
alexey-bataev Jan 15, 2018
c4a6d8a
[OPENMP] Update docs for OpenMP status, NFC.
alexey-bataev Jan 15, 2018
505903c
[PCH] Serialize skipped preprocessor ranges
cameron314 Jan 15, 2018
b6ec36b
Fixed memory leak in unit test introduced in my previous commit r322503
cameron314 Jan 15, 2018
7d4e49b
[RISCV] Fix test failures on non-assert builds introduced in r322494
asb Jan 15, 2018
902664b
[OPENMP] Initial codegen for `target teams distribute parallel for
alexey-bataev Jan 15, 2018
10a3299
[OPENMP] Update status of OpenMP support, NFC.
alexey-bataev Jan 15, 2018
16360a5
[Driver] Suggest valid integrated tools
modocache Jan 15, 2018
2b1d36b
Revert 319303: Add _Float128 as alias to __float128 to enable compila…
Jan 15, 2018
5a18d2f
[Sema] Fix a crash on invalid features in multiversioning
gburgessiv Jan 16, 2018
377ea9a
[libclang] Add PrintingPolicy for pretty printing declarations
jbcoe Jan 16, 2018
052acd2
Add missing CINDEX_LINKAGE
Jan 16, 2018
5e98234
Ensure code complete with !LoadExternal sees all local decls.
sam-mccall Jan 16, 2018
da08e83
Squash -Wcovered-switch-default wairning
sam-mccall Jan 16, 2018
b67e0c9
[NFC] fix trivial typo in document
inouehrs Jan 16, 2018
8809092
[OPENMP] Add support for `depend` clauses on `target simd`.
alexey-bataev Jan 16, 2018
3df8716
[SystemZ] Support vector registers with inline asm
uweigand Jan 16, 2018
a483fc2
[OPENMP] Add support for `depend` clauses on `target teams`.
alexey-bataev Jan 16, 2018
5be47da
[OPENMP] Add support for `depend` clauses on `target parallel` direct…
alexey-bataev Jan 16, 2018
1064d9b
[OPENMP] Add support for `depend` clause on `target teams distribute`.
alexey-bataev Jan 16, 2018
f41e84d
Add va_start()/va_copy()/va_end to Builtins.def
nico Jan 16, 2018
985afbc
[OPENMP] Add support for `depend` clauses on `target teams distribute
alexey-bataev Jan 16, 2018
850e39c
[OPENMP] Add support for `depend` clauses on `target parallel for`
alexey-bataev Jan 16, 2018
89f8888
[OPENMP] Add support for `depend` clauses on `target parallel for simd`
alexey-bataev Jan 16, 2018
47898b2
[OPENMP] Add support for `depend` on `target teams distribute parallel
alexey-bataev Jan 16, 2018
275b0a0
[OPENMP] Add support for `depend` clauses on `target teams distribute
alexey-bataev Jan 16, 2018
6f37170
[DOCS] Updated current status of OpenMP support, NFC.
alexey-bataev Jan 16, 2018
18e2f7a
Merge branch 'master' of github.com:llvm-mirror/clang
schweitzpgi Jan 16, 2018
7a94b66
Move target MV resolver to COMDAT
Jan 16, 2018
a00817a
Add context to why test was disabled on Windows
Weverything Jan 16, 2018
0b2fb3a
Make DiagnosticsEngine() take DiagOpts as DiagnosticsEngine.
nico Jan 17, 2018
b2aa74a
[analyzer] support a mode to only show relevant lines in HTML diagnos…
Jan 17, 2018
8497b28
[CodeGen] Fix a crash on mangling multiversioned functions
gburgessiv Jan 17, 2018
6abf9f9
[clang-format] Reorganize RawStringFormat based on language
krasimirgg Jan 17, 2018
614f5c2
[clang-cl] Let /FA output use intel assembly.
nico Jan 17, 2018
2ac973d
[Sema] Add visited contexts to CodeCompleteContext
hokein Jan 17, 2018
01869f2
[Index] Fix GCC warning. This is silly, but no llvm_unreachable and n…
sam-mccall Jan 17, 2018
9bf6180
Attempt to fix test/Driver/masm.c on the ARM bots.
nico Jan 17, 2018
7966228
[clang-format] adds enclosing function detection to raw string format…
krasimirgg Jan 17, 2018
584c883
Update dump_ast_matchers for many recent changes.
d0k Jan 17, 2018
12fd961
[Format] Improve ObjC header guessing heuristic
bhamiltoncx Jan 17, 2018
a3998c5
[Tooling] Don't deduplicate tool results in the All-TUs executor.
Jan 17, 2018
77ca95f
[Index] Fix GCC warning again :-(
sam-mccall Jan 17, 2018
9ad8e83
[Parse] Forward brace locations to TypeConstructExpr
vedantk Jan 17, 2018
62d06f7
[DeclPrinter] Fix two cases that crash clang -ast-print.
Artem-B Jan 17, 2018
3d90a2c
[ASTMatchers] Add isNoReturn() match narrower for FunctionDeclarations
LebedevRI Jan 17, 2018
b6a88f3
[clang-format] Replace unordered_set with an array
krasimirgg Jan 17, 2018
b97e2a8
[analyzer] Better UI in html reports for displaying shortcuts help
Jan 17, 2018
8d0e135
[analyzer] Make isSubRegionOf reflexive
Jan 17, 2018
b340ee9
[analyzer] introduce getSVal(Stmt *) helper on ExplodedNode, make sur…
Jan 17, 2018
ca20a3a
[RISCV] Propagate -mabi and -march values to GNU assembler.
Jan 17, 2018
4a83557
[analyzer] operator new: Use the correct region for the constructor.
haoNoQ Jan 17, 2018
6d36e99
[analyzer] NFC: Forbid array elements of void type.
haoNoQ Jan 17, 2018
9178f16
[analyzer] operator new: Model the cast of returned pointer into obje…
haoNoQ Jan 17, 2018
2612882
[DOXYGEN] Fix doxygen and content issues in xmmintrin.h
dyung Jan 17, 2018
8e90076
[Sema] Allow conversion between long double and __float128.
d0k Jan 17, 2018
9b5dca1
[analyzer] operator new: Fix memory space for the returned region.
haoNoQ Jan 17, 2018
5ae3508
[analyzer] operator new: Fix ambigious type name.
haoNoQ Jan 17, 2018
33b0668
[ASTMatchers] Support generating docs for single-line matchers
d0k Jan 17, 2018
0e0ad4e
[analyzer] operator new: Add a new checker callback, check::NewAlloca…
haoNoQ Jan 17, 2018
549b9af
[analyzer] NFC: operator new: Fix new(nothrow) definition in tests.
haoNoQ Jan 18, 2018
a86510b
[analyzer] operator new: Fix path diagnostics around the operator call.
haoNoQ Jan 18, 2018
a452f43
Use an enum value instead of a string.
espindola Jan 18, 2018
0e15f13
[analyzer] Suppress "this" pointer escape during construction.
haoNoQ Jan 18, 2018
5b43bb5
[analyzer] operator new: Add a new ProgramPoint for check::NewAllocator.
haoNoQ Jan 18, 2018
fdba1f2
[analyzer] operator new: Fix callback order for CXXNewExpr.
haoNoQ Jan 18, 2018
33080db
[analyzer] NFC: Use "= default" for default ProgramPoint constructors.
haoNoQ Jan 18, 2018
87bcdaa
[analyzer] NFC: RetainCount: Protect from dumping raw region to path …
haoNoQ Jan 18, 2018
7ca5636
[analyzer] NFC: Remove unused method - BugReporter::RemoveUnneededCal…
haoNoQ Jan 18, 2018
e320468
Update for llvm change.
espindola Jan 18, 2018
4e0630a
[analyzer] a few helper methods for getting and comparing symbolic va…
Jan 18, 2018
520ca51
Fix Scope::dump()
Weverything Jan 18, 2018
217babe
Revert rC322769: [RISCV] Propagate -mabi and -march values to GNU ass…
inouehrs Jan 18, 2018
a842b5f
[ASTMatcher] Add isScoped matcher for enumDecl.
hokein Jan 18, 2018
43e5d26
Fix MSVC "uninitialized variable" warning.
RKSimon Jan 18, 2018
ca37e4f
[Frontend] Allow to use PrecompiledPreamble without calling CanReuse
ilya-biryukov Jan 18, 2018
0a720a3
[OpenMP] Correct generation of offloading entries
hahnjo Jan 18, 2018
a8bf4d5
[ClangFormat] ObjCSpaceBeforeProtocolList should be true in the googl…
bhamiltoncx Jan 18, 2018
fa1848b
Convert comment to C-style to prevent warning
sbc100 Jan 18, 2018
8bdf43b
c-index-test: small fix to CXString handling and disposal
elsteveogrande Jan 18, 2018
29b35f5
Remove TautologicalInRangeCompare from Extra and TautologicalCompare.
nico Jan 18, 2018
39e8838
[X86] Add missing check for RDSEED to ICL, CNL, SKX sections of test/…
topperc Jan 19, 2018
76f3b3f
[Fuchsia] Enable Fuzzer as a supported sanitizer on Fuchsia
petrhosek Jan 19, 2018
1aeb63a
[Refactor] Use enum instead of magic number in handleX86ForceAlignArg…
etherzhhb Jan 19, 2018
d57b406
[Fuchsia] Tests for the Fuzzer support in Fuchsia driver
petrhosek Jan 19, 2018
3e53723
[CodeGenCXX] annotate a GEP to a derived class with 'inbounds' (PR35909)
rotateright Jan 19, 2018
ce000e5
[clang-format] Fix shortening blocks in macros causing merged next line
krasimirgg Jan 19, 2018
7de2463
[clang-format] Adds a canonical delimiter to raw string formatting
krasimirgg Jan 19, 2018
59b6576
Change memcpy/memove/memset to have dest and source alignment attribu…
Jan 19, 2018
d91a0b8
[WebAssembly] Add target flags for sign-ext opcodes.
Jan 19, 2018
705cfa3
[cmake] Also pass CMAKE_ASM_COMPILER_ID to next stage when bootstrapping
donhinton Jan 19, 2018
f11660a
[X86] Add goldmont to test/Driver/x86-march.c
topperc Jan 19, 2018
b340925
Allow BlockDecl in CXXRecord scope to have no access specifier.
Weverything Jan 19, 2018
5d89c44
[AArch64] Add ARMv8.2-A FP16 scalar intrinsics
Jan 19, 2018
d0ace12
[Lex] Fix crash on code completion in comment in included file.
vsapsai Jan 19, 2018
d708604
Link sanitized programs on NetBSD with -lkvm
krytarowski Jan 20, 2018
57f0ae0
[X86] Put the code that defines __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 f…
topperc Jan 20, 2018
e786d86
[X86] Add rdpid command line option and intrinsics.
topperc Jan 20, 2018
85e59a0
[cmake] Use CLANG_BINARY_DIR to determine the build directory.
vgvassilev Jan 20, 2018
23a2041
[analyzer] Provide a check name when MallocChecker enables CStringChe…
devincoughlin Jan 20, 2018
ee91cd8
[NFC] fix trivial typos in comments
inouehrs Jan 22, 2018
7b1dc5f
[analyzer] Model and check unrepresentable left shifts
Xazax-hun Jan 22, 2018
b0fd08c
[modules] Correctly overload getModule in the MultiplexExternalSemaSo…
Teemperor Jan 22, 2018
6967d60
[DOCS] Mention OpenMP Tools Interface in runtime library
hahnjo Jan 22, 2018
39491d7
[CodeComplete] Fix completion in the middle of idents in macro calls
ilya-biryukov Jan 22, 2018
429a73d
[analyzer] Protect against dereferencing a null pointer
alexander-shaposhnikov Jan 22, 2018
e88bbab
[CodeComplete] Omit templated constructors from member list too.
sam-mccall Jan 22, 2018
0d81673
Introduce the "retpoline" x86 mitigation technique for variant #2 of …
chandlerc Jan 22, 2018
9647938
Reland "[CodeGen] Fix crash when a function taking transparent union …
vsapsai Jan 22, 2018
36e16a4
[ASTMatchers] [NFC] Fix code examples
MaskRay Jan 22, 2018
00c472c
Add hasTrailingReturn AST matcher
Jan 22, 2018
585dd5d
NewPM: Improve/fix GCOV - which needs to run early in the pass pipeline.
dwblaikie Jan 23, 2018
9a36014
[NFC] fix trivial typos in comments
inouehrs Jan 23, 2018
8e91672
[ARM] Pass _Float16 as int or float
Jan 23, 2018
ee026ab
[clang-format] Ignore UnbreakableTailLength sometimes during breaking
krasimirgg Jan 23, 2018
b0e5924
[Solaris] gcc toolchain handling revamp
Jan 23, 2018
a3dc690
[Solaris] Make RHEL devtoolsets handling Linux-specific
Jan 23, 2018
1a4e31c
[Tooling] Added a VFS parameter to ClangTool
ilya-biryukov Jan 23, 2018
5d58211
Fix Driver/solaris-ld.c test on Windows
Jan 23, 2018
4eae234
clang-format: Support formatting Java 8 interface default methods.
nico Jan 23, 2018
a11eb9e
[WebAssembly] Add mem.* builtin functions.
Jan 23, 2018
a06a1fb
test: adjust the target for some Windows tests
compnerd Jan 23, 2018
1bea54f
clang-format: Support macros in front of @interface / @protocol for O…
nico Jan 23, 2018
e9b66e1
Name two bool parameters. No behavior change.
nico Jan 23, 2018
a6717a6
test: simplify the matching logic a bit (NFC)
compnerd Jan 23, 2018
1bf4e5a
test/Driver: Add some --stdlib=platform, NFC.
hahnjo Jan 23, 2018
9602416
[OPENMP] Remove more empty SourceLocations() from the code.
alexey-bataev Jan 23, 2018
b63f818
[Docs] Re-generate command line documentation.
topperc Jan 23, 2018
8ba6523
[OPENMP] Replace call of EmitLoadOfLValue() by EmitLoadOfScalar(), NFC.
alexey-bataev Jan 23, 2018
639c532
[CUDA] CUDA has no device-side library builtins.
Artem-B Jan 23, 2018
72ae43d
AST: adjust ObjC MS mangling to work with typedefs
compnerd Jan 23, 2018
f964f9a
[html] [NFC] Use raw strings to dump the style table.
Jan 23, 2018
74a822f
[analyzer] Show full analyzer invocation for reproducibility in HTML …
Jan 23, 2018
bc95497
CodeGen: use `llvm.used` for ObjC protocols
compnerd Jan 23, 2018
21dbb8d
[analyzer] Mark lines as relevant even if they weren't executed but h…
Jan 23, 2018
a7cf1d4
[WebAssembly] Factor out settings common to wasm32 and wasm64. NFC.
Jan 23, 2018
79e1670
AST: correct mangling for SEL on MS ABI
compnerd Jan 23, 2018
e7469bc
Fix test Driver/solaris-ld.c
Weverything Jan 23, 2018
bbb5d09
Adjust MaxAtomicInlineWidth for i386/i486 targets.
wmi-11 Jan 23, 2018
d9fb0cb
Fix test Driver/solaris-ld.c for Windows.
dyung Jan 24, 2018
6e37dc8
Fix typo in comment.
nico Jan 24, 2018
903b385
Attempt to fix implicit-fallthrough warning after r323218.
nico Jan 24, 2018
aff1a3f
Refactor RecursiveASTVisitor test for post-order traversal
Teemperor Jan 24, 2018
901c7de
Fix typos of occurred and occurrence
pepsiman Jan 24, 2018
88254eb
[clang-format] Disable string literal breaking for text protos
krasimirgg Jan 24, 2018
461567f
clang-cl: Parse /permissive-, /Bt, Bt+ (PR32672)
zmodem Jan 24, 2018
7e980e2
[CUDA] Disable PGO and coverage instrumentation in NVPTX.
Artem-B Jan 24, 2018
d5376a7
[CodeComplete] only respect LoadExternal hint at namespace/tu scope
sam-mccall Jan 24, 2018
417df0a
[Hexagon] Accept lowercase b in -hvx-length=64b and -hvx-length=128b
Jan 24, 2018
28825cf
Don't create hidden dllimport global values.
espindola Jan 24, 2018
902a966
IRGen: Emit an inline implementation of __builtin_wmemcmp on MSVCRT p…
pcc Jan 24, 2018
4e56966
Revert r323051 "[cmake] Use CLANG_BINARY_DIR to determine the build d…
vgvassilev Jan 24, 2018
0ecda27
[analyzer] Assume that the allocated value is non-null before constru…
haoNoQ Jan 24, 2018
d203f0a
[analyzer] Enable c++-allocator-inlining by default.
haoNoQ Jan 24, 2018
727e352
[analyzer] NFC: Run many existing C++ tests with a custom operator ne…
haoNoQ Jan 24, 2018
2915e0f
[coroutines] Pass coro func args to promise ctor
modocache Jan 24, 2018
738efbf
[analyzer] Do not attempt to get the pointee of void*
alexander-shaposhnikov Jan 24, 2018
9b3c7c6
FreeBSD needs also execinfo (in sanitizers)
krytarowski Jan 24, 2018
0b990c5
[Driver] Add support for mips32 and scudo
Jan 25, 2018
f949e04
[clang-format] Fixes indentation of inner text proto messages
krasimirgg Jan 25, 2018
9660f4b
[CodeGen] Decorate aggregate accesses with TBAA tags
Jan 25, 2018
96b4d11
clang-cl: Simplify handling of /arch: flag.
nico Jan 25, 2018
64081fe
[clang-cl] Add support for /arch:AVX512F and /arch:AVX512
nico Jan 25, 2018
244006d
Unused diagnostics can occur in tblgen.
d0k Jan 25, 2018
da65bb0
Merge branch 'master' of github.com:llvm-mirror/clang
schweitzpgi Jan 25, 2018
fcdbeda
AST: inline a single-use variable (NFC)
compnerd Jan 25, 2018
7e0a202
Don't let test write to the source dir after r323426.
nico Jan 25, 2018
a58d043
[Driver] Add an -fexperimental-isel driver option to enable/disable G…
aemerson Jan 26, 2018
da170fe
[NFC] fix trivial typos in comments and documents
inouehrs Jan 26, 2018
b45d701
[Tooling] Test more APIs of ToolExecutor. NFC.
Jan 26, 2018
b926dd8
[ASTImporter] Support LambdaExprs and improve template support
a-sidorin Jan 26, 2018
f7c3d66
[OpenCL] Add "cles_khr_int64" extension.
bader Jan 26, 2018
5029924
[ASTImporter] avoid warnings: unused var, switch covered
sam-mccall Jan 26, 2018
0763d20
[AST] Use bit packing to reduce sizeof(TypedefNameDecl) from 88 to 80.
d0k Jan 26, 2018
08ca961
clang-format: [JS] Prevent ASI before [ and (.
mprobst Jan 26, 2018
6ff6952
[X86] Define __IBT__ when -mibt is specified.
topperc Jan 26, 2018
71f3942
AST: support protocol conformances on id/class/interfaces in MS ABI
compnerd Jan 26, 2018
ca1d83b
[index] Fix crash when indexing a C++14 PCH/module related to Templat…
akyrtzi Jan 26, 2018
679d846
[X86] Add 'rdrnd' feature to silvermont to match recent gcc bug fix.
topperc Jan 26, 2018
06a72f4
Try to unbreak 32 bit builds after r323528.
d0k Jan 26, 2018
adf8391
Always allow "#pragma region".
Jan 27, 2018
d145f4b
[CodeGen] Use the non-virtual alignment when emitting the base
ahatanaka Jan 27, 2018
68d1f1e
[ASTImporter] Add support to import some AST nodes:
Xazax-hun Jan 27, 2018
8fb4d6d
Attempt to make the PS4 build bot happy.
Xazax-hun Jan 27, 2018
72313ca
[git-clang-format] Process CUDA files
hahnjo Jan 28, 2018
09aa26c
Change memcpy/memove/memset to have dest and source alignment attribu…
Jan 28, 2018
0c08d98
[NFC] fix trivial typos in comments
inouehrs Jan 29, 2018
b286bfc
[Lexer] Support adding working directory to relative search dir for #…
Jan 29, 2018
a9dc600
[analyzer] Fix -x language argument for C preprocessed sources
jroelofs Jan 29, 2018
f457c2c
[scan-build] Add an option to skip overriding CC and CXX make vars
jroelofs Jan 29, 2018
e88bf5d
[clang-format] Fix bug where -dump-config failed on ObjC header
bhamiltoncx Jan 29, 2018
45a6b8d
[clang-format] Disable some text proto delimiters and functions for g…
krasimirgg Jan 29, 2018
a1db825
[NFC] Fixup comment with function name, actually incorrect name!
Jan 29, 2018
48412d1
[clang-format] Add more tests for ObjC protocol list formatting behavior
bhamiltoncx Jan 29, 2018
54af503
[analyzer] [NFC] Remove unused method visitItemsInWorkList
Jan 29, 2018
44c0f4c
[analyzer] Use stable filenames in analyzer testing infrastructure
Jan 29, 2018
82aa86f
[coroutines] Fix application of NRVO to Coroutine "Gro" or return obj…
EricWF Jan 29, 2018
ccacb5d
[CUDA] Added partial support for CUDA-9.1
Artem-B Jan 30, 2018
facfffc
Revert "[coroutines] Fix application of NRVO to Coroutine "Gro" or re…
EricWF Jan 30, 2018
6a5184a
Revert "CodeGen: annotate ObjC ARC functions with ABI constraints"
ahatanaka Jan 30, 2018
ac466c9
[analyzer] Extend SuppressInlineDefensiveChecksVisitor to all macros,…
Jan 30, 2018
c0ae038
[CUDA] Detect installation in PATH
hahnjo Jan 31, 2018
e400706
[clang-format] Adds space around braces in text protos
krasimirgg Jan 31, 2018
02e8730
Fix typo. NFC
jroelofs Jan 31, 2018
251524e
[AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions
dfukalov Jan 31, 2018
717663c
Revert "Revert rC322769: [RISCV] Propagate -mabi and -march values to…
Jan 31, 2018
8605c2b
Revert "[AMDGPU] Add ds_fadd, ds_fmin, ds_fmax builtins functions"
dfukalov Jan 31, 2018
317550f
[WebAssembly] Don't pass -ffunction-section/-fdata-sections
sbc100 Jan 31, 2018
15c4170
Clarify that optimization levels -O2 and above are recommended for us…
echristo Jan 31, 2018
5762b18
[clang-format] Align preprocessor comments with #
mzeren-vmw Jan 31, 2018
253065e
[PR32482] Fix bitfield layout for -mms-bitfield and pragma pack
hyp Jan 31, 2018
1aa077b
Merge branch 'master' of github.com:llvm-mirror/clang
schweitzpgi Feb 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ if (CLANG_ENABLE_BOOTSTRAP)
set(COMPILER_OPTIONS
-DCMAKE_CXX_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/${CXX_COMPILER}
-DCMAKE_C_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/${C_COMPILER}
-DCMAKE_ASM_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/${C_COMPILER})
-DCMAKE_ASM_COMPILER=${LLVM_RUNTIME_OUTPUT_INTDIR}/${C_COMPILER}
-DCMAKE_ASM_COMPILER_ID=Clang)

if(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED)
add_dependencies(clang-bootstrap-deps llvm-profdata)
Expand Down
7 changes: 1 addition & 6 deletions cmake/caches/Fuchsia-stage2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ set(LLVM_ENABLE_LTO ON CACHE BOOL "")
if(NOT APPLE)
set(LLVM_ENABLE_LLD ON CACHE BOOL "")
set(CLANG_DEFAULT_LINKER lld CACHE STRING "")
endif()

if(APPLE)
set(LLDB_CODESIGN_IDENTITY "" CACHE STRING "")
set(CLANG_DEFAULT_OBJCOPY llvm-objcopy CACHE STRING "")
endif()

set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
Expand Down Expand Up @@ -83,8 +80,6 @@ set(LLVM_TOOLCHAIN_TOOLS
set(LLVM_DISTRIBUTION_COMPONENTS
clang
lld
lldb
liblldb
LTO
clang-format
clang-headers
Expand Down
42 changes: 41 additions & 1 deletion docs/ClangCommandLineReference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,18 @@ Output path for the plist report
.. option:: -bundle\_loader <arg>
.. program:: clang

.. option:: -cfguard

Emit tables required for Windows Control Flow Guard.

.. option:: -client\_name<arg>

.. option:: -compatibility\_version<arg>

.. option:: --config <arg>

Specifies configuration file

.. option:: --constant-cfstrings

.. option:: -coverage, --coverage
Expand Down Expand Up @@ -1175,6 +1183,10 @@ Load the clang builtins module map file.

.. option:: -fcaret-diagnostics, -fno-caret-diagnostics

.. option:: -fcf-protection=<arg>, -fcf-protection (equivalent to -fcf-protection=full)

Instrument control-flow architecture protection. Options: return, branch, full, none.

.. option:: -fclasspath=<arg>, --CLASSPATH <arg>, --CLASSPATH=<arg>, --classpath <arg>, --classpath=<arg>

.. option:: -fcolor-diagnostics, -fno-color-diagnostics
Expand Down Expand Up @@ -1545,6 +1557,10 @@ Enable ARC-style weak references in Objective-C

OpenMP target code is compiled as relocatable using the -c flag. For OpenMP targets the code is relocatable by default.

.. option:: -fopenmp-simd, -fno-openmp-simd

Emit OpenMP code only for SIMD-based constructs.

.. option:: -fopenmp-use-tls

.. option:: -fopenmp-version=<arg>
Expand Down Expand Up @@ -1748,6 +1764,10 @@ Force the usage of stack protectors for all functions

Use a strong heuristic to apply stack protectors to functions

.. option:: -fstack-size-section, -fno-stack-size-section

Emit section containing metadata on function stack sizes

.. option:: -fstandalone-debug, -fno-limit-debug-info, -fno-standalone-debug

Emit full debug info for all types used by the program
Expand Down Expand Up @@ -1998,7 +2018,7 @@ Link stack frames through backchain on System Z

.. option:: -mconsole<arg>

.. option:: -mcpu=<arg>, -mv4 (equivalent to -mcpu=hexagonv4), -mv5 (equivalent to -mcpu=hexagonv5), -mv55 (equivalent to -mcpu=hexagonv55), -mv60 (equivalent to -mcpu=hexagonv60), -mv62 (equivalent to -mcpu=hexagonv62)
.. option:: -mcpu=<arg>, -mv4 (equivalent to -mcpu=hexagonv4), -mv5 (equivalent to -mcpu=hexagonv5), -mv55 (equivalent to -mcpu=hexagonv55), -mv60 (equivalent to -mcpu=hexagonv60), -mv62 (equivalent to -mcpu=hexagonv62), -mv65 (equivalent to -mcpu=hexagonv65)

.. option:: -mdefault-build-attributes<arg>, -mno-default-build-attributes<arg>

Expand Down Expand Up @@ -2312,6 +2332,8 @@ WebAssembly
-----------
.. option:: -mnontrapping-fptoint, -mno-nontrapping-fptoint

.. option:: -msign-ext, -mno-sign-ext

.. option:: -msimd128, -mno-simd128

X86
Expand All @@ -2328,6 +2350,8 @@ X86

.. option:: -mavx2, -mno-avx2

.. option:: -mavx512bitalg, -mno-avx512bitalg

.. option:: -mavx512bw, -mno-avx512bw

.. option:: -mavx512cd, -mno-avx512cd
Expand All @@ -2344,8 +2368,12 @@ X86

.. option:: -mavx512vbmi, -mno-avx512vbmi

.. option:: -mavx512vbmi2, -mno-avx512vbmi2

.. option:: -mavx512vl, -mno-avx512vl

.. option:: -mavx512vnni, -mno-avx512vnni

.. option:: -mavx512vpopcntdq, -mno-avx512vpopcntdq

.. option:: -mbmi, -mno-bmi
Expand All @@ -2370,6 +2398,8 @@ X86

.. option:: -mfxsr, -mno-fxsr

.. option:: -mgfni, -mno-gfni

.. option:: -mibt, -mno-ibt

.. option:: -mlwp, -mno-lwp
Expand All @@ -2394,10 +2424,16 @@ X86

.. option:: -mprfchw, -mno-prfchw

.. option:: -mrdpid, -mno-rdpid

.. option:: -mrdrnd, -mno-rdrnd

.. option:: -mrdseed, -mno-rdseed

.. option:: -mretpoline, -mno-retpoline

.. option:: -mretpoline-external-thunk, -mno-retpoline-external-thunk

.. option:: -mrtm, -mno-rtm

.. option:: -msgx, -mno-sgx
Expand All @@ -2424,6 +2460,10 @@ X86

.. option:: -mtbm, -mno-tbm

.. option:: -mvaes, -mno-vaes

.. option:: -mvpclmulqdq, -mno-vpclmulqdq

.. option:: -mx87, -m80387, -mno-x87

.. option:: -mxop, -mno-xop
Expand Down
61 changes: 40 additions & 21 deletions docs/ClangFormatStyleOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -994,28 +994,28 @@ the configuration (without a prefix: ``Auto``).

.. code-block:: c++

Constructor()
: initializer1(),
initializer2()
Constructor()
: initializer1(),
initializer2()

* ``BCIS_BeforeComma`` (in configuration: ``BeforeComma``)
Break constructor initializers before the colon and commas, and align
the commas with the colon.

.. code-block:: c++

Constructor()
: initializer1()
, initializer2()
Constructor()
: initializer1()
, initializer2()

* ``BCIS_AfterColon`` (in configuration: ``AfterColon``)
Break constructor initializers after the colon and commas.

.. code-block:: c++

Constructor() :
initializer1(),
initializer2()
Constructor() :
initializer1(),
initializer2()



Expand Down Expand Up @@ -1201,7 +1201,8 @@ the configuration (without a prefix: ``Auto``).

* ``IBS_Regroup`` (in configuration: ``Regroup``)
Merge multiple ``#include`` blocks together and sort as one.
Then split into groups based on category priority. See ``IncludeCategories``.
Then split into groups based on category priority. See
``IncludeCategories``.

.. code-block:: c++

Expand Down Expand Up @@ -1577,24 +1578,42 @@ the configuration (without a prefix: ``Auto``).


**RawStringFormats** (``std::vector<RawStringFormat>``)
Raw string delimiters denoting that the raw string contents are
code in a particular language and can be reformatted.
Defines hints for detecting supported languages code blocks in raw
strings.

A raw string with a matching delimiter or a matching enclosing function
name will be reformatted assuming the specified language based on the
style for that language defined in the .clang-format file. If no style has
been defined in the .clang-format file for the specific language, a
predefined style given by 'BasedOnStyle' is used. If 'BasedOnStyle' is not
found, the formatting is based on llvm style. A matching delimiter takes
precedence over a matching enclosing function name for determining the
language of the raw string contents.

If a canonical delimiter is specified, occurrences of other delimiters for
the same language will be updated to the canonical if possible.

A raw string with a matching delimiter will be reformatted assuming the
specified language based on a predefined style given by 'BasedOnStyle'.
If 'BasedOnStyle' is not found, the formatting is based on llvm style.
There should be at most one specification per language and each delimiter
and enclosing function should not occur in multiple specifications.

To configure this in the .clang-format file, use:

.. code-block:: yaml

RawStringFormats:
- Delimiter: 'pb'
Language: TextProto
BasedOnStyle: llvm
- Delimiter: 'proto'
Language: TextProto
BasedOnStyle: google
- Language: TextProto
Delimiters:
- 'pb'
- 'proto'
EnclosingFunctions:
- 'PARSE_TEXT_PROTO'
BasedOnStyle: google
- Language: Cpp
Delimiters:
- 'cc'
- 'cpp'
BasedOnStyle: llvm
CanonicalDelimiter: 'cc'

**ReflowComments** (``bool``)
If ``true``, clang-format will attempt to re-flow comments.
Expand Down
2 changes: 1 addition & 1 deletion docs/InternalsManual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ Note that setting this member to 1 will opt out of common attribute semantic
handling, requiring extra implementation efforts to ensure the attribute
appertains to the appropriate subject, etc.

If the attribute should not be propagated from from a template declaration to an
If the attribute should not be propagated from a template declaration to an
instantiation of the template, set the ``Clone`` member to 0. By default, all
attributes will be cloned to template instantiations.

Expand Down
5 changes: 5 additions & 0 deletions docs/LanguageExtensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,11 @@ The following type trait primitives are supported by Clang:
* ``__is_constructible`` (MSVC 2013, clang)
* ``__is_nothrow_constructible`` (MSVC 2013, clang)
* ``__is_assignable`` (MSVC 2015, clang)
* ``__reference_binds_to_temporary(T, U)`` (Clang): Determines whether a
reference of type ``T`` bound to an expression of type ``U`` would bind to a
materialized temporary object. If ``T`` is not a reference type the result
is false. Note this trait will also return false when the initialization of
``T`` from ``U`` is ill-formed.

Blocks
======
Expand Down
Loading