Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
448 commits
Select commit Hold shift + click to select a range
c0fec04
Fix tests from r335542 to use %hmaptool
bcardosolopes Jun 25, 2018
3707aa4
Add an option to support debug fission on implicit ThinLTO.
Jun 25, 2018
c877647
[MachineOutliner] NFC - simplify -moutline/-mno-outline logic
Jun 25, 2018
3176c13
[analyzer] Fix invalidation on C++ const methods with arrow syntax.
haoNoQ Jun 25, 2018
707983e
[analyzer] Track null and undef values through expressions with clean…
haoNoQ Jun 25, 2018
265fa98
[X86] Redefine avx512 packed fpclass intrinsics to return a vXi1 mask…
topperc Jun 26, 2018
736ed08
Implement CFI for indirect calls via a member function pointer.
pcc Jun 26, 2018
0e97430
Modernize a function, NFC.
vedantk Jun 26, 2018
f759bf6
[ubsan] Relax nullability-return for blocks with deduced types
vedantk Jun 26, 2018
d4b5754
Fix an ambiguous overload issue pointed out by MSVC
vedantk Jun 26, 2018
a8fca7b
[clang-format] Enable text proto formatting in common functions
krasimirgg Jun 26, 2018
109df80
[ASTImporter] Use InjectedClassNameType at import of templated record.
martong Jun 26, 2018
df4e40a
Avoid spurious 'comma operator within array index expression' MSVC wa…
RKSimon Jun 26, 2018
3e91464
[ThinLTO] Add testing of summary index parsing to a couple CFI tests
teresajohnson Jun 26, 2018
f3b1b31
[Driver] Do not add -lpthread & -lrt with -static-libsan on Android
Jun 26, 2018
c812eef
Revert "[CMake][Darwin] Match cxx-headers -> cxx_headers libcxx targe…
francisvm Jun 26, 2018
52b5428
[Test] Initial test commit access
aaronenyeshi Jun 26, 2018
ad2ab0a
[OPENMP, NVPTX] Reduce the number of the globalized variables.
alexey-bataev Jun 26, 2018
d0be2a0
[HIP] Remove hip/hc.amdgcn.bc from HIP Toolchains
aaronenyeshi Jun 26, 2018
032d43a
Compile CodeGenModule.cpp with /bigobj.
pcc Jun 26, 2018
4d1c546
[Sema] Fix infinite typo correction loop.
vsapsai Jun 26, 2018
2348c7f
[mips] Use more conservative default CPUs for MIPS on FreeBSD.
bsdjhb Jun 26, 2018
495d25c
[AST] Fix typo in LazyOffsetPtr::get docs (NFC)
modocache Jun 26, 2018
d245644
[analyzer] Do not run visitors until the fixpoint, run only once.
Jun 26, 2018
cb07cbc
[MachineOutliner] Emit a warning when using -moutline on unsupported …
Jun 26, 2018
b4bc5a9
[analyzer] Minor cleanups for BugReporter, expose a getter for Analyz…
Jun 26, 2018
7e4eef1
Revert "[MS] Use mangled names and comdats for string merging with ASan"
eugenis Jun 26, 2018
5e73e9b
[analyzer] [tests] Include statistics in tests.
Jun 26, 2018
4f1497d
[clang] Add test dependency on llvm-as
smeenai Jun 26, 2018
8eed785
Diagnose missing 'template' keywords in more cases.
zygoloid Jun 26, 2018
affe61a
[mips] Explicitly specify the linker emulation for MIPS on FreeBSD.
bsdjhb Jun 27, 2018
2f412f2
Diagnose missing 'template' keywords in contexts where a comma is not a
zygoloid Jun 27, 2018
ed40733
[analyzer] [NFC] Add -verify to malloc checker test
Jun 27, 2018
3387634
[analyzer] [NFC] A convenient getter for getting a current stack frame
Jun 27, 2018
aa26656
Fix warning about unhandled enumeration in switch.
Jun 27, 2018
90a853e
[CMake] Provide direct support for building sanitized runtimes
petrhosek Jun 27, 2018
0c5b8db
[CMake] Support passing FUCHSIA_SDK as the only variable
petrhosek Jun 27, 2018
6c38f66
Add regression test for PR37935.
nico Jun 27, 2018
5e1a899
[Analyzer] Moved RangeConstraintManager to header. NFC.
mikhailramalho Jun 27, 2018
e16472d
Re-apply: [ASTImporter] Import the whole redecl chain of functions
martong Jun 27, 2018
f040667
[NEON] Support vldNq intrinsics in AArch32 (Clang part)
Jun 27, 2018
c5df29b
[analyzer] Fix string not being formatted with extra arguments
mikhailramalho Jun 27, 2018
cac78d3
[analyzer] Allow registering custom statically-linked analyzer checkers
alexfh Jun 27, 2018
8631ead
[X86] Rename llvm.x86.avx512.mask.fpclass.p* to exclude 'mask.' from …
topperc Jun 27, 2018
8e5cbd6
[NEON] Remove empty test file from r335734
francisvm Jun 27, 2018
0783eee
Revert "[Analyzer] Moved RangeConstraintManager to header. NFC."
mikhailramalho Jun 27, 2018
baa2648
[DebugInfo] Emit ObjC methods as part of interface
JDevlieghere Jun 27, 2018
8821a24
[UBSan] Add silence_unsigned_overflow flag.
morehouse Jun 27, 2018
9185e52
[CUDA] Use atexit() to call module destructor.
Artem-B Jun 27, 2018
53d8fcb
[HIP] Support flush denormals bitcode
aaronenyeshi Jun 27, 2018
81c2075
[HIP] Fix ordering of device-libs linking
aaronenyeshi Jun 27, 2018
54d0e05
DR1213: Ignore implicit conversions when determining if an operand of an
zygoloid Jun 27, 2018
4dc93bb
[Modules][ObjC] Warn on the use of '@import' in framework headers
bcardosolopes Jun 27, 2018
34df83c
DR1687: When overload resolution selects a built-in operator, implicit
zygoloid Jun 27, 2018
4617d8c
[www] Update cxx_dr_status for recent DR fixes.
zygoloid Jun 27, 2018
3cbd1a4
[analyzer] Add clangFrontend to target_link_libraries
aheejin Jun 27, 2018
f5fb3f3
[CFG] [analyzer] Add construction contexts that explain pre-C++17 cop…
haoNoQ Jun 28, 2018
22d5fd2
[analyzer] Re-enable lifetime extension for temporaries without destr…
haoNoQ Jun 28, 2018
c3d3ed8
[CFG] [analyzer] Simplify lifetime-extended temporary construction co…
haoNoQ Jun 28, 2018
9d345ab
[analyzer] Add support for pre-C++17 copy elision.
haoNoQ Jun 28, 2018
e79c553
[analyzer] Use sufficiently large types for index bounds calculation.
haoNoQ Jun 28, 2018
ad799f2
[modules] Ensure that an in-class function definition is attached to the
zygoloid Jun 28, 2018
4dc3dee
[modules] Do not serialize / deserialize pending new/delete mismatch
zygoloid Jun 28, 2018
bd011d1
[analyzer] Remove redundant ';'.
haoNoQ Jun 28, 2018
7a290f1
Support for multiarch runtimes layout
petrhosek Jun 28, 2018
cd0dfe1
Handle both Linux and Windows path separator for the resource dir
petrhosek Jun 28, 2018
03d5d6e
[CMake] Use explicit targets for building Linux runtimes
petrhosek Jun 28, 2018
e3ba098
[Analyzer] Constraint Manager Negates Difference
Jun 28, 2018
1107c5c
[DebugInfo] Follow-up commit to improve consistency. NFC
JDevlieghere Jun 28, 2018
97905d1
[Analyzer] Iterator Checker - Part 2: Increment, decrement operators …
Jun 28, 2018
5ba3097
Fix the indentation in this documentation to remove a Sphinx warning;…
AaronBallman Jun 28, 2018
a352889
Correct the code highlighting marker to be Objective-C rather than C+…
AaronBallman Jun 28, 2018
bff556f
The :option: syntax was generating Sphinx build warnings; switched to…
AaronBallman Jun 28, 2018
29cdecb
[ODRHash] Do not rely on Type* when computing the hash.
vgvassilev Jun 28, 2018
28e87ab
Fix unittest build with GCC older than 5.
d0k Jun 28, 2018
4607d74
OpenBSD driver needs ld.lld in sanitizer context
devnexen Jun 28, 2018
aeb727e
Fix test that was failing on Windows due to too many backslashes
filcab Jun 28, 2018
554d9db
[clang-format] Do not format raw string literals inside a recognized …
krasimirgg Jun 28, 2018
9c9dd21
[CUDA] Place all CUDA sections in __NV_CUDA segment on Mac.
Artem-B Jun 28, 2018
f176add
[Darwin] Remove _VPMergeHook from the auto-export list
vedantk Jun 28, 2018
9be8d20
Set the line ending of clang.natvis to CRLF.
AaronBallman Jun 28, 2018
8be0731
[CMake] Make bootstrap and compiler-rt depend on cxx-headers.
ahmedbougacha Jun 28, 2018
5026a3c
[OPENMP] Fix incomplete type check for array reductions
jdenny-ornl Jun 28, 2018
7b12778
Revert r335907: [OPENMP] Fix incomplete type check for array reductions
jdenny-ornl Jun 28, 2018
c44d5bf
[OPENMP] Fix incomplete type check for array reductions
jdenny-ornl Jun 28, 2018
1f430ab
[CMake] Build static runtimes for host in Fuchsia first stage
petrhosek Jun 28, 2018
8d49bfd
[CMake] Don't build Linux targets on Darwin in Fuchsia toolchain
petrhosek Jun 28, 2018
ff6b0ec
PR37979: integral promotions in C++ treat enum bit-fields like enums,
zygoloid Jun 28, 2018
8b67bbb
[analyzer] Fix wrong comparison generation of the ranges generated by…
mikhailramalho Jun 28, 2018
eed865a
[Parse] Make -Wgcc-compat complain about for loop inits in C89
gburgessiv Jun 28, 2018
264b0f3
[analyzer] Move test to the correct directory
mikhailramalho Jun 28, 2018
1670f60
[analyzer] fix test case expected warning
mikhailramalho Jun 28, 2018
5fdc10d
DebugInfo: Add -gno-gnu-pubnames to allow disabling gnu-pubnames late…
dwblaikie Jun 28, 2018
5b2dfe4
[frontend] Don't include the C++ stdlib for -x assembler-with-cpp
hyp Jun 28, 2018
0af2982
[X86] Remove masking from the avx512 packed sqrt builtins. Use select…
topperc Jun 29, 2018
622f921
[ASTImporter] Eliminated some unittest warnings.
martong Jun 29, 2018
41b9b9e
[analyzer][UninitializedObjectChecker] Added a NotesAsWarnings flag
Szelethus Jun 29, 2018
776a04d
[ASTImporter] Added import of CXXStdInitializerListExpr
martong Jun 29, 2018
cc3a621
[clang-format] Support additional common functions for text proto for…
krasimirgg Jun 29, 2018
4c16104
[clang-format/ObjC] Fix NS_SWIFT_NAME(foo(bar:baz:)) after ObjC metho…
bhamiltoncx Jun 29, 2018
aaf4d11
[Fixed Point Arithmetic] Rename `-fsame-fbits` flag
PiJoules Jun 29, 2018
4497d9c
[MachineOutliner] Make -mno-outline use -enable-machine-outliner=never
Jun 29, 2018
bcf5ad3
[analyzer] Replace the vector of ConstraintSets by a single Constrain…
mikhailramalho Jun 29, 2018
cb739b3
[mips][ias] Enable IAS by default for OpenBSD / FreeBSD mips64/mips64el.
brad0 Jun 29, 2018
833ad29
Request init/fini array on FreeBSD 12 and later
DimitryAndric Jun 29, 2018
dd5dcdd
Specify an explicit underlying type for this enum to fix Windows
zygoloid Jun 29, 2018
0134501
[modules] Emit the type of the TypeSourceInfo for a DeclaratorDecl (but
zygoloid Jun 29, 2018
4f4b04b
Spurious commit just to help Richard, because git is weird.
dwblaikie Jun 29, 2018
fd6e423
PR33924: merge local declarations that have linkage of some kind within
zygoloid Jun 29, 2018
534c44a
[analyzer] [tests] Fix 80 column violation in SATestBuild.py
Jun 29, 2018
b87dc38
[analyzer] [tests] Allow the tested project to specify it's own analy…
Jun 29, 2018
4a70ae3
[CUDA] Make min/max shims host+device.
Jun 29, 2018
e5aa4b4
[CUDA] Make __host__/__device__ min/max overloads constexpr in C++14.
Jun 29, 2018
6b9a1ec
Add protocol redefinition to the current scope/context
bcardosolopes Jun 30, 2018
4fed156
[X86] Remove masking from the avx512 rotate builtins. Use a select bu…
topperc Jun 30, 2018
2d90574
Driver: Don't mix system tools with devtoolset tools on RHEL
tstellar Jun 30, 2018
c70199d
Driver: Add an explicit target to testcase from r336037
tstellar Jun 30, 2018
ea8ce11
[X86] Correct the width of mask arguments in intrinsic headers and te…
topperc Jun 30, 2018
4446de2
Add expected fail triple x86_64-pc-windows-gnu to test as x86_64-w64-…
yrnkrn Jun 30, 2018
bd0a790
[ms] Fix mangling of char16_t and char32_t to be compatible with MSVC.
nico Jul 2, 2018
629b013
Test commit access
balazske Jul 2, 2018
4084c9e
[analyzer] [tests] Pass clang executable path to prefix-less executor…
Jul 2, 2018
ddb77a4
[CodeGenCXX] Emit strip.invariant.group with -fstrict-vtable-pointers
prazek Jul 2, 2018
2a67022
Per C++ [over.match.copy]p1, direct-initialization of a reference can
zygoloid Jul 2, 2018
aa3be4e
[Driver][Darwin] Use Host Triple to infer target os version
cachemeifyoucan Jul 3, 2018
cfd5890
Revert r336021 "PR33924: merge local declarations that have linkage o…
zmodem Jul 3, 2018
82cfb48
[Driver] Add PPC64 as supported for Scudo
Jul 3, 2018
a0c03f2
Fix crash in clang.
Jul 3, 2018
83dc9e5
Fix allocation of Nullability attribute.
Jul 3, 2018
1faea10
Factor out Clang's desired 8MB stack size constant from the various
zygoloid Jul 3, 2018
7cb94b0
[Sema] Discarded statment should be an evaluatable context.
epilk Jul 3, 2018
2926189
[Sema] Consider all format_arg attributes.
Meinersbur Jul 4, 2018
ef356db
PR33924: merge local declarations that have linkage of some kind within
zygoloid Jul 4, 2018
4f874f4
NFC - typo fix in test/CodeGen/avx512f-builtins.c
GBuella Jul 4, 2018
c8c9b4d
[Sema] Fix crash in getConstructorName.
ilya-biryukov Jul 4, 2018
6c9c407
[SemaCodeComplete] Make sure visited contexts are passed to completio…
Jul 4, 2018
c09b728
Add missing include for size_t
EricWF Jul 4, 2018
4239cbe
NFC - Fix typo in test/Layout/itanium-pack-and-align.cpp
GBuella Jul 4, 2018
dd6f2c1
NFC - Fix typo in test/CodeGenObjC/gnustep2-class.m
GBuella Jul 4, 2018
1d7006d
NFC - Fix type in builtins-ppc-p9vector.c test
GBuella Jul 4, 2018
06787e3
[ASTImporter] import macro source locations
Jul 4, 2018
d29eb3a
[analyzer][ctu] fix unsortable diagnostics
Jul 4, 2018
90dccc4
[Index] Remove unused index::IndexDataConsumer::_anchor()
MaskRay Jul 5, 2018
bbe9af0
[Power9] Update fp128 as a valid homogenous aggregate base type
lei137 Jul 5, 2018
d2b3d46
[NFS] Wipe trailing whitespaces
kirillbobyrev Jul 5, 2018
60f7669
[ASTImporter] Fix import of objects with anonymous types
martong Jul 5, 2018
e1d6275
[X86] NFC - add more test cases for vector cmp intrinsics
GBuella Jul 5, 2018
570d2b6
[mips] Add '-mcrc', '-mno-crc' options to enable/disable CRC ASE
Jul 5, 2018
aa316d4
[X86] Fix some vector cmp builtins - TRUE/FALSE predicates
GBuella Jul 5, 2018
feb79d9
Fix __builtin_*_overflow when out-param isn't constexpr
Jul 5, 2018
ba7b10a
[clang-cl, PCH] Implement support for MS-style PCH through headers
Jul 5, 2018
6aaa2f4
Add PCH tests for R336379
Jul 5, 2018
62c4c0f
[X86] Use shufflevector instead of a select with a constant mask for …
topperc Jul 5, 2018
7d013cb
[Sema] -Wformat-pedantic only for NSInteger/NSUInteger %tu/%td on Darwin
hyp Jul 5, 2018
1f48bb4
[ms] Fix mangling of string literals used to initialize arrays larger…
zmodem Jul 6, 2018
5727c8b
[X86] Implement _builtin_ia32_vfmaddss and _builtin_ia32_vfmaddsd wit…
topperc Jul 6, 2018
809e94c
[SemaCodeComplete] Expose a method to create CodeCompletionString for…
Jul 6, 2018
86c9915
[Driver,AArch64] Add support for -mcpu=native.
fhahn Jul 6, 2018
8980f32
[OPENMP] Make clauses closing loc point to right bracket.
alexey-bataev Jul 6, 2018
5137aa7
[OPENMP] Fix PR38026: Link -latomic when -fopenmp is used.
alexey-bataev Jul 6, 2018
2ffe81c
[ASTMatchers] A matcher for Objective-C @autoreleasepool
Jul 6, 2018
4ad65cd
[X86] Add missing scalar fma intrinsics with rounding, but no mask.
topperc Jul 6, 2018
f3ac792
[MachineOutliner] Properly pass -moutline along to the toolchain
Jul 6, 2018
4cc1cb5
[X86] When creating a select for scalar masked sqrt and div builtins …
topperc Jul 6, 2018
2af72fe
Check returned type is valid before using it.
Weverything Jul 7, 2018
d377dc1
[Sema] Emit -Wincomplete-implementation for partial methods.
epilk Jul 7, 2018
27dd885
P0806R2 Implicit capture of this with a capture-default of [=] is
zygoloid Jul 7, 2018
1d754e8
[X86] Fix various type mismatches in intrinsic headers and intrinsic …
topperc Jul 7, 2018
15349a0
[X86] Change _mm512_shuffle_pd and _mm512_shuffle_ps to use target sp…
topperc Jul 7, 2018
9f82dc3
[analyzer] Highlight container object destruction in MallocChecker.
rnkovacs Jul 7, 2018
a8cfadd
[analyzer] Fix -Wcovered-switch-default warning in MallocChecker.
rnkovacs Jul 7, 2018
ffbe9fa
[analyzer] Highlight c_str() call in DanglingInternalBufferChecker.
rnkovacs Jul 7, 2018
5c22565
[analyzer] Add support for data() in DanglingInternalBufferChecker.
rnkovacs Jul 7, 2018
08497c1
[X86] Fix a few intrinsics that were ignoring their rounding mode arg…
topperc Jul 7, 2018
de1ae27
[X86] Remove some unnecessarily escaped new lines from avx512fintrin.h
topperc Jul 7, 2018
11b0a91
[X86] Remove __builtin_ia32_vfnmsubsd3_mask3 and __builtin_ia32_vfnms…
topperc Jul 7, 2018
1d7e46b
[X86] Add new scalar fma intrinsics with rounding mode that use f32/f…
topperc Jul 8, 2018
d3e19c8
[clang-format/ObjC] Fix counting selector name parts for ObjC
jacek1727 Jul 9, 2018
1e3b4b4
[clang-format/ObjC] Prohibit breaking after a bracket opening ObjC me…
jacek1727 Jul 9, 2018
33d0472
[clang-format/ObjC] Improve split priorities for ObjC methods
jacek1727 Jul 9, 2018
15e7043
[clang-format/ObjC] Put ObjC method arguments into one line when they…
jacek1727 Jul 9, 2018
72faa33
[ASTImporter] import FunctionDecl end locations
Jul 9, 2018
8576df5
[Index] Add indexing support for MACROs.
Jul 9, 2018
d7f8ffe
[Index] Add clangLex to LINK_LIBS
aheejin Jul 9, 2018
a92e7cf
[ASTImporter] fix test failure corrected by fixed func end locs
Jul 9, 2018
d46ee15
[Preamble] Check system dependencies in preamble too
ilya-biryukov Jul 9, 2018
9ac3044
Try to fix build bot after r336524
Jul 9, 2018
b5784f8
[PCH] Add an option to not write comments into PCH
ilya-biryukov Jul 9, 2018
4a1455f
[OPENMP, NVPTX] Do not globalize local variables in parallel regions.
alexey-bataev Jul 9, 2018
b5e3776
[Power9] Add __float128 builtins for Round To Odd
stefanp-synopsys Jul 9, 2018
dc74ef6
[Builtins][Attributes][X86] Tag all X86 builtins with their required …
topperc Jul 9, 2018
f983ca8
[Index] Ignore noop #undef's when handling macro occurrences.
Jul 9, 2018
0b6fe14
[libclang] evalute compound statement cursors before trying to evaluate
hyp Jul 9, 2018
7a9552d
[libclang] NFC, simplify clang_Cursor_Evaluate
hyp Jul 9, 2018
500eccb
[OPENMP] Do not mark local variables as declare target.
alexey-bataev Jul 9, 2018
2098bf0
[Power9] [CLANG] Add __float128 support for trunc to double round to odd
stefanp-synopsys Jul 9, 2018
1568512
Added -fcrash-diagnostics-dir flag
inglorion Jul 9, 2018
2a527c0
[AST] Rename some Redeclarable functions to reduce confusion
MaskRay Jul 9, 2018
b1e72a6
[Index] Add index::IndexingOptions::IndexImplicitInstantiation
MaskRay Jul 9, 2018
48ab15f
Rename function calls missed in r336605
Weverything Jul 9, 2018
8ccbbcf
[X86] Add __builtin_ia32_selectss_128 and __builtin_ia32_selectsd_128…
topperc Jul 10, 2018
ba066d5
[X86] Remove custom handling for __builtin_ia32_divss_round_mask and …
topperc Jul 10, 2018
c6a6cc5
Fix parsing of privacy annotations in os_log format strings.
ahatanaka Jul 10, 2018
a758e72
Update crash diagnostics test to avoid attempting to write into various
echristo Jul 10, 2018
2e63a7e
[ODRHash] Merge the two function hashes into one.
Weverything Jul 10, 2018
c5845b4
[Sema] Fix a structured binding typo correction bug
epilk Jul 10, 2018
3d47eea
[X86] Use masked the masked scalar fma builtins to implement the defa…
topperc Jul 10, 2018
5734ece
Test commit
steveire Jul 10, 2018
b4d2cac
[X86] Lowering integer truncation intrinsics to native IR
mdvoretc-intel Jul 10, 2018
fca87f4
[MinGW] Treat any -lucrt* as replacing -lmsvcrt
mstorsjo Jul 10, 2018
c3b3b46
[MinGW] Skip adding default win32 api libraries if -lwindowsapp is sp…
mstorsjo Jul 10, 2018
6d65cdc
Fixing builtin __atomic_fetch_min declaration
opaparobivas Jul 10, 2018
f40124d
[modules] Fix 37878; Autoload subdirectory modulemaps with specific L…
yamaguchi1024 Jul 10, 2018
d94210c
[analyzer] Add option to set maximum symbol complexity threshold
mikhailramalho Jul 10, 2018
695bff9
Update test for backend error message change
arsenm Jul 10, 2018
eb22ae6
AMDGPU: Try to fix test again
arsenm Jul 10, 2018
7db09e3
Support -fdebug-prefix-map for assembler source (pass to cc1as). This
pogo59 Jul 10, 2018
9c99d48
Fix a typo/regression in r335495.
bsdjhb Jul 10, 2018
d33a97c
Revert r336591 "[libclang] NFC, simplify clang_Cursor_Evaluate"
eugenis Jul 10, 2018
8430288
Revert r336590 "[libclang] evalute compound statement cursors before …
eugenis Jul 10, 2018
8275ce2
Patch to fix pragma metadata for do-while loops
bjope Jul 10, 2018
1437ede
[NFC] Switch CodeGenFunction to use value init instead of member init…
Jul 10, 2018
9c7bda2
Revert -r336726, which included more files than intended.
Jul 10, 2018
032aa95
[NFC] Switch CodeGenFunction to use value init instead of member init…
Jul 10, 2018
284abf4
Fix determination of whether a reinterpret_cast casts away constness.
zygoloid Jul 10, 2018
176126f
[X86] Fix the test for _mm512_mullox_epi64 to test the intrinsic inst…
topperc Jul 10, 2018
3c6b786
[X86] Also fix the test for _mm512_mullo_epi64 to test the intrinsic …
topperc Jul 10, 2018
295c886
DR330: look through array types when forming the cv-decomposition of …
zygoloid Jul 11, 2018
e7e3aff
PR38095: Allow constant-folding of loads through bitcasted pointers if
zygoloid Jul 11, 2018
7e86569
[docs] List correct default for -ftemplate-depth; also add missing
zygoloid Jul 11, 2018
f0eae10
Remove qualtype qualifier in coroutine error to prevent assert in debug
modocache Jul 11, 2018
487ab4c
[SemaCXX] Remove comment from coroutines test, NFC
modocache Jul 11, 2018
545b456
[analyzer] Pass through all arguments from the registerChecker() to t…
Jul 11, 2018
d431316
[analyzer] Partial revert of https://reviews.llvm.org/D49050
Jul 11, 2018
bb374a8
[analyzer] Fix bots by changing the analyzer-config tests.
Jul 11, 2018
3ace827
[AST] Structural equivalence of methods
balazske Jul 11, 2018
e26d556
[mips] Add '-mvirt', '-mno-virt', '-mginv', '-mno-ginv' options
Jul 11, 2018
d03bdf0
[VirtualFileSystem] InMemoryFileSystem::status: Return a Status with …
Jul 11, 2018
c53ede8
[clangd] Uprank delcarations when "using q::name" is present in the m…
kirillbobyrev Jul 11, 2018
1d90e73
[AST] Fix for structural equivalence tests in rL336776.
balazske Jul 11, 2018
27d3141
Revert "[VirtualFileSystem] InMemoryFileSystem::status: Return a Stat…
Jul 11, 2018
9b025e6
[analyzer] Track multiple raw pointer symbols in DanglingInternalBuff…
rnkovacs Jul 11, 2018
e14ae93
[NFC] Replace usage of QualType.getTypePtr()-> with operator->
Jul 11, 2018
28a5dcb
[NFC] typo
jfbastien Jul 11, 2018
924068e
Fix setting of empty implicit-section-name attribute
Jul 11, 2018
9c70ef5
[FileCheck] Add -allow-deprecated-dag-overlap to failing clang tests
jdenny-ornl Jul 11, 2018
0c4483d
Fix determination of whether one set of cvr-qualifiers is compatible
zygoloid Jul 11, 2018
e45150d
os_log: When there are multiple privacy annotations in the format
ahatanaka Jul 11, 2018
ce51829
Fix deduction for conversion function templates converting to reference
zygoloid Jul 11, 2018
da95ba6
Merge branch 'master' of github.com:llvm-mirror/clang
schweitzpgi Jul 11, 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
  •  
  •  
  •  
16 changes: 13 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ if (CLANG_ENABLE_BOOTSTRAP)
endif()
endif()

if(CLANG_BOOTSTRAP_EXTRA_DEPS)
add_dependencies(clang-bootstrap-deps ${CLANG_BOOTSTRAP_EXTRA_DEPS})
endif()

add_custom_target(${NEXT_CLANG_STAGE}-clear
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${NEXT_CLANG_STAGE}-cleared
)
Expand Down Expand Up @@ -617,10 +621,15 @@ if (CLANG_ENABLE_BOOTSTRAP)
LLVM_ENABLE_PROJECTS
LLVM_ENABLE_RUNTIMES)

# We don't need to depend on compiler-rt if we're building instrumented
# We don't need to depend on compiler-rt/libcxx if we're building instrumented
# because the next stage will use the same compiler used to build this stage.
if(TARGET compiler-rt AND NOT LLVM_BUILD_INSTRUMENTED)
add_dependencies(clang-bootstrap-deps compiler-rt)
if(NOT LLVM_BUILD_INSTRUMENTED)
if(TARGET compiler-rt)
add_dependencies(clang-bootstrap-deps compiler-rt)
endif()
if(TARGET cxx-headers)
add_dependencies(clang-bootstrap-deps cxx-headers)
endif()
endif()

set(C_COMPILER "clang")
Expand Down Expand Up @@ -749,6 +758,7 @@ endif()
if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION)
add_subdirectory(utils/ClangVisualizers)
endif()
add_subdirectory(utils/hmaptool)

configure_file(
${CLANG_SOURCE_DIR}/include/clang/Config/config.h.cmake
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LLVM Release License
University of Illinois/NCSA
Open Source License

Copyright (c) 2007-2016 University of Illinois at Urbana-Champaign.
Copyright (c) 2007-2018 University of Illinois at Urbana-Champaign.
All rights reserved.

Developed by:
Expand Down
2 changes: 2 additions & 0 deletions bindings/python/tests/cindex/test_cdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
import os
import gc
import unittest
import sys


kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS')


@unittest.skipIf(sys.platform == 'win32', "TODO: Fix these tests on Windows")
class TestCDB(unittest.TestCase):
def test_create_fail(self):
"""Check we fail loading a database with an assertion"""
Expand Down
4 changes: 2 additions & 2 deletions bindings/python/tests/cindex/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def test_enum_type(self):

self.assertEqual(enum.kind, CursorKind.ENUM_DECL)
enum_type = enum.enum_type
self.assertEqual(enum_type.kind, TypeKind.UINT)
self.assertIn(enum_type.kind, (TypeKind.UINT, TypeKind.INT))

def test_enum_type_cpp(self):
tu = get_tu('enum TEST : long long { FOO=1, BAR=2 };', lang="cpp")
Expand Down Expand Up @@ -561,4 +561,4 @@ def test_mangled_name(self):
# all valid manglings.
# [c-index-test handles this by running the source through clang, emitting
# an AST file and running libclang on that AST file]
self.assertIn(foo.mangled_name, ('_Z3fooii', '__Z3fooii', '?foo@@YAHHH'))
self.assertIn(foo.mangled_name, ('_Z3fooii', '__Z3fooii', '?foo@@YAHHH', '?foo@@YAHHH@Z'))
37 changes: 17 additions & 20 deletions bindings/python/tests/cindex/test_translation_unit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from contextlib import contextmanager
import gc
import os
import tempfile
Expand All @@ -19,15 +20,15 @@
kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS')


@contextmanager
def save_tu(tu):
"""Convenience API to save a TranslationUnit to a file.

Returns the filename it was saved to.
"""
_, path = tempfile.mkstemp()
tu.save(path)

return path
with tempfile.NamedTemporaryFile() as t:
tu.save(t.name)
yield t.name


class TestTranslationUnit(unittest.TestCase):
Expand Down Expand Up @@ -125,10 +126,9 @@ def test_save(self):

tu = get_tu('int foo();')

path = save_tu(tu)
self.assertTrue(os.path.exists(path))
self.assertGreater(os.path.getsize(path), 0)
os.unlink(path)
with save_tu(tu) as path:
self.assertTrue(os.path.exists(path))
self.assertGreater(os.path.getsize(path), 0)

def test_save_translation_errors(self):
"""Ensure that saving to an invalid directory raises."""
Expand All @@ -149,21 +149,18 @@ def test_load(self):

tu = get_tu('int foo();')
self.assertEqual(len(tu.diagnostics), 0)
path = save_tu(tu)

self.assertTrue(os.path.exists(path))
self.assertGreater(os.path.getsize(path), 0)

tu2 = TranslationUnit.from_ast_file(filename=path)
self.assertEqual(len(tu2.diagnostics), 0)
with save_tu(tu) as path:
self.assertTrue(os.path.exists(path))
self.assertGreater(os.path.getsize(path), 0)

foo = get_cursor(tu2, 'foo')
self.assertIsNotNone(foo)
tu2 = TranslationUnit.from_ast_file(filename=path)
self.assertEqual(len(tu2.diagnostics), 0)

# Just in case there is an open file descriptor somewhere.
del tu2
foo = get_cursor(tu2, 'foo')
self.assertIsNotNone(foo)

os.unlink(path)
# Just in case there is an open file descriptor somewhere.
del tu2

def test_index_parse(self):
path = os.path.join(kInputsDir, 'hello.cpp')
Expand Down
133 changes: 76 additions & 57 deletions cmake/caches/Fuchsia-stage2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(PACKAGE_VENDOR Fuchsia CACHE STRING "")
set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "")
set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "")
set(LLVM_ENABLE_BACKTRACES OFF CACHE BOOL "")
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL "")
set(LLVM_ENABLE_TERMINFO OFF CACHE BOOL "")
set(LLVM_ENABLE_ZLIB ON CACHE BOOL "")
set(LLVM_EXTERNALIZE_DEBUGINFO ON CACHE BOOL "")
Expand All @@ -27,69 +28,87 @@ set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -gline-tables-only -DNDEBUG" CACHE STRING "")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -gline-tables-only -DNDEBUG" CACHE STRING "")

set(FUCHSIA_BUILTINS_BUILD_TYPE Release CACHE STRING "")
set(FUCHSIA_RUNTIMES_BUILD_TYPE Release CACHE STRING "")
set(FUCHSIA_RUNTIMES_ENABLE_ASSERTIONS ON CACHE BOOL "")
if(APPLE)
list(APPEND BUILTIN_TARGETS "default")
list(APPEND RUNTIME_TARGETS "default")
elseif(UNIX)
foreach(target i386;x86_64;armhf;aarch64)
if(LINUX_${target}_SYSROOT)
# Set the per-target builtins options.
list(APPEND BUILTIN_TARGETS "${target}-linux-gnu")
set(BUILTINS_${target}-linux-gnu_CMAKE_SYSTEM_NAME Linux CACHE STRING "")
set(BUILTINS_${target}-linux-gnu_CMAKE_BUILD_TYPE Release CACHE STRING "")
set(BUILTINS_${target}-linux-gnu_CMAKE_SYSROOT ${LINUX_${target}_SYSROOT} CACHE STRING "")

set(LLVM_BUILTIN_TARGETS "default;x86_64-fuchsia;aarch64-fuchsia" CACHE STRING "")
# Set the per-target runtimes options.
list(APPEND RUNTIME_TARGETS "${target}-linux-gnu")
set(RUNTIMES_${target}-linux-gnu_CMAKE_SYSTEM_NAME Linux CACHE STRING "")
set(RUNTIMES_${target}-linux-gnu_CMAKE_BUILD_TYPE Release CACHE STRING "")
set(RUNTIMES_${target}-linux-gnu_CMAKE_SYSROOT ${LINUX_${target}_SYSROOT} CACHE STRING "")
set(RUNTIMES_${target}-linux-gnu_LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBUNWIND_ENABLE_SHARED OFF CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBUNWIND_INSTALL_LIBRARY OFF CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBCXXABI_ENABLE_STATIC_UNWINDER ON CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBCXXABI_INSTALL_LIBRARY OFF CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
set(RUNTIMES_${target}-linux-gnu_LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
endif()
endforeach()
endif()

# Set the per-target builtins options.
foreach(target x86_64;aarch64)
set(BUILTINS_${target}-fuchsia_CMAKE_SYSTEM_NAME Fuchsia CACHE STRING "")
set(BUILTINS_${target}-fuchsia_CMAKE_BUILD_TYPE ${FUCHSIA_BUILTINS_BUILD_TYPE} CACHE STRING "")
set(BUILTINS_${target}-fuchsia_CMAKE_ASM_FLAGS ${FUCHSIA_${target}_C_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_C_FLAGS ${FUCHSIA_${target}_C_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_CXX_FLAGS ${FUCHSIA_${target}_CXX_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_EXE_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_SHARED_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_MODULE_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_SYSROOT ${FUCHSIA_${target}_SYSROOT} CACHE PATH "")
endforeach()
if(FUCHSIA_SDK)
set(FUCHSIA_aarch64_NAME arm64)
set(FUCHSIA_x86_64_NAME x64)
foreach(target x86_64;aarch64)
set(FUCHSIA_${target}_COMPILER_FLAGS "-I${FUCHSIA_SDK}/pkg/fdio/include")
set(FUCHSIA_${target}_LINKER_FLAGS "-L${FUCHSIA_SDK}/arch/${FUCHSIA_${target}_NAME}/lib")
set(FUCHSIA_${target}_SYSROOT "${FUCHSIA_SDK}/arch/${FUCHSIA_${target}_NAME}/sysroot")
endforeach()

set(LLVM_RUNTIME_TARGETS "default;x86_64-fuchsia;aarch64-fuchsia;x86_64-fuchsia-asan:x86_64-fuchsia;aarch64-fuchsia-asan:aarch64-fuchsia" CACHE STRING "")
foreach(target x86_64;aarch64)
# Set the per-target builtins options.
list(APPEND BUILTIN_TARGETS "${target}-fuchsia")
set(BUILTINS_${target}-fuchsia_CMAKE_SYSTEM_NAME Fuchsia CACHE STRING "")
set(BUILTINS_${target}-fuchsia_CMAKE_BUILD_TYPE Release CACHE STRING "")
set(BUILTINS_${target}-fuchsia_CMAKE_ASM_FLAGS ${FUCHSIA_${target}_COMPILER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_C_FLAGS ${FUCHSIA_${target}_COMPILER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_CXX_FLAGS ${FUCHSIA_${target}_COMPILER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_SHARED_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_MODULE_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_EXE_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(BUILTINS_${target}-fuchsia_CMAKE_SYSROOT ${FUCHSIA_${target}_SYSROOT} CACHE PATH "")

# Set the default target runtimes options.
if(NOT APPLE)
set(LIBUNWIND_ENABLE_SHARED OFF CACHE BOOL "")
set(LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "")
set(LIBUNWIND_INSTALL_LIBRARY OFF CACHE BOOL "")
set(LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "")
set(LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "")
set(LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "")
set(LIBCXXABI_ENABLE_STATIC_UNWINDER ON CACHE BOOL "")
set(LIBCXXABI_INSTALL_LIBRARY OFF CACHE BOOL "")
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
set(LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
endif()
# Set the per-target runtimes options.
list(APPEND RUNTIME_TARGETS "${target}-fuchsia")
set(RUNTIMES_${target}-fuchsia_CMAKE_SYSTEM_NAME Fuchsia CACHE STRING "")
set(RUNTIMES_${target}-fuchsia_CMAKE_BUILD_TYPE Release CACHE STRING "")
set(RUNTIMES_${target}-fuchsia_CMAKE_BUILD_WITH_INSTALL_RPATH ON CACHE STRING "")
set(RUNTIMES_${target}-fuchsia_CMAKE_ASM_FLAGS ${FUCHSIA_${target}_COMPILER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_C_FLAGS ${FUCHSIA_${target}_COMPILER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_CXX_FLAGS ${FUCHSIA_${target}_COMPILER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_SHARED_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_MODULE_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_EXE_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_SYSROOT ${FUCHSIA_${target}_SYSROOT} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_SANITIZER_USE_COMPILER_RT ON CACHE BOOL "")
endforeach()

# Set the per-target runtimes options.
foreach(target x86_64;aarch64)
set(RUNTIMES_${target}-fuchsia_CMAKE_SYSTEM_NAME Fuchsia CACHE STRING "")
set(RUNTIMES_${target}-fuchsia_CMAKE_BUILD_TYPE ${FUCHSIA_RUNTIMES_BUILD_TYPE} CACHE STRING "")
set(RUNTIMES_${target}-fuchsia_CMAKE_BUILD_WITH_INSTALL_RPATH ON CACHE STRING "")
set(RUNTIMES_${target}-fuchsia_CMAKE_ASM_FLAGS ${FUCHSIA_${target}_C_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_C_FLAGS ${FUCHSIA_${target}_C_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_CXX_FLAGS ${FUCHSIA_${target}_CXX_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_EXE_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_SHARED_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_MODULE_LINKER_FLAGS ${FUCHSIA_${target}_LINKER_FLAGS} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_SYSROOT ${FUCHSIA_${target}_SYSROOT} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_LLVM_ENABLE_ASSERTIONS ${FUCHSIA_RUNTIMES_ENABLE_ASSERTIONS} CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBUNWIND_ENABLE_STATIC OFF CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBCXXABI_ENABLE_STATIC OFF CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_LIBCXX_ENABLE_STATIC OFF CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_SANITIZER_USE_COMPILER_RT ON CACHE BOOL "")
set(LLVM_RUNTIME_SANITIZERS "Address" CACHE STRING "")
set(LLVM_RUNTIME_SANITIZER_Address_TARGETS "x86_64-fuchsia;aarch64-fuchsia" CACHE STRING "")
endif()

set(RUNTIMES_${target}-fuchsia-asan_LLVM_USE_SANITIZER Address CACHE STRING "")
set(RUNTIMES_${target}-fuchsia-asan_LLVM_RUNTIMES_PREFIX "${target}-fuchsia/" CACHE STRING "")
set(RUNTIMES_${target}-fuchsia-asan_LLVM_RUNTIMES_LIBDIR_SUFFIX "/asan" CACHE STRING "")
set(RUNTIMES_${target}-fuchsia-asan_LIBCXX_INSTALL_HEADERS OFF CACHE BOOL "")
endforeach()
set(LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS}" CACHE STRING "")
set(LLVM_RUNTIME_TARGETS "${RUNTIME_TARGETS}" CACHE STRING "")

# Setup toolchain.
set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "")
Expand Down
22 changes: 21 additions & 1 deletion cmake/caches/Fuchsia.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ set(PACKAGE_VENDOR Fuchsia CACHE STRING "")
set(LLVM_INCLUDE_EXAMPLES OFF CACHE BOOL "")
set(LLVM_INCLUDE_TESTS OFF CACHE BOOL "")
set(LLVM_INCLUDE_DOCS OFF CACHE BOOL "")
set(CLANG_INCLUDE_TESTS OFF CACHE BOOL "")
set(LLVM_ENABLE_BACKTRACES OFF CACHE BOOL "")
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL "")
set(LLVM_ENABLE_TERMINFO OFF CACHE BOOL "")
set(LLVM_ENABLE_ZLIB OFF CACHE BOOL "")
set(CLANG_INCLUDE_TESTS OFF CACHE BOOL "")
set(CLANG_PLUGIN_SUPPORT OFF CACHE BOOL "")

set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
Expand All @@ -21,10 +22,25 @@ if(NOT APPLE)
set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")
endif()

set(CLANG_DEFAULT_CXX_STDLIB libc++ CACHE STRING "")
set(CLANG_DEFAULT_RTLIB compiler-rt CACHE STRING "")

if(APPLE)
set(COMPILER_RT_ENABLE_IOS OFF CACHE BOOL "")
set(COMPILER_RT_ENABLE_TVOS OFF CACHE BOOL "")
set(COMPILER_RT_ENABLE_WATCHOS OFF CACHE BOOL "")
elseif(UNIX)
set(LIBUNWIND_ENABLE_SHARED OFF CACHE BOOL "")
set(LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "")
set(LIBUNWIND_INSTALL_LIBRARY OFF CACHE BOOL "")
set(LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "")
set(LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "")
set(LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "")
set(LIBCXXABI_ENABLE_STATIC_UNWINDER ON CACHE BOOL "")
set(LIBCXXABI_INSTALL_LIBRARY OFF CACHE BOOL "")
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
set(LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
endif()

set(CLANG_BOOTSTRAP_TARGETS
Expand All @@ -51,6 +67,10 @@ endforeach()

# Setup the bootstrap build.
set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
set(CLANG_BOOTSTRAP_EXTRA_DEPS
builtins
runtimes
CACHE STRING "")
set(CLANG_BOOTSTRAP_CMAKE_ARGS
${EXTRA_ARGS}
-C ${CMAKE_CURRENT_LIST_DIR}/Fuchsia-stage2.cmake
Expand Down
14 changes: 9 additions & 5 deletions docs/AddressSanitizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,17 @@ this purpose.
Disabling Instrumentation with ``__attribute__((no_sanitize("address")))``
--------------------------------------------------------------------------

Some code should not be instrumented by AddressSanitizer. One may use the
function attribute ``__attribute__((no_sanitize("address")))`` (which has
deprecated synonyms `no_sanitize_address` and `no_address_safety_analysis`) to
disable instrumentation of a particular function. This attribute may not be
supported by other compilers, so we suggest to use it together with
Some code should not be instrumented by AddressSanitizer. One may use
the attribute ``__attribute__((no_sanitize("address")))`` (which has
deprecated synonyms `no_sanitize_address` and
`no_address_safety_analysis`) to disable instrumentation of a
particular function. This attribute may not be supported by other
compilers, so we suggest to use it together with
``__has_feature(address_sanitizer)``.

The same attribute used on a global variable prevents AddressSanitizer
from adding redzones around it and detecting out of bounds accesses.

Suppressing Errors in Recompiled Code (Blacklist)
-------------------------------------------------

Expand Down
10 changes: 10 additions & 0 deletions docs/ClangCommandLineReference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1934,6 +1934,12 @@ Set the default symbol visibility for all global declarations

Enables whole-program vtable optimization. Requires -flto

.. option:: -fforce-emit-vtables, -fno-force-emit-vtables

In order to improve devirtualization, forces emitting of vtables even in
modules where it isn't necessary. It causes more inline virtual functions
to be emitted.

.. option:: -fwrapv, -fno-wrapv

Treat signed integer overflow as two's complement
Expand Down Expand Up @@ -2296,6 +2302,10 @@ AARCH64

Reserve the x18 register (AArch64 only)

.. option:: -ffixed-x20

Reserve the x20 register (AArch64 only)

.. option:: -mfix-cortex-a53-835769, -mno-fix-cortex-a53-835769

Workaround Cortex-A53 erratum 835769 (AArch64 only)
Expand Down
Loading