Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
641 commits
Select commit Hold shift + click to select a range
07fe64c
Remove the fixit for the diagnostics regarding capturing autoreleasin…
May 14, 2018
e8fbde0
Fix regression in r332076.
zygoloid May 14, 2018
32f603c
Fix test fail on some buildbots, caused by r332281.
jdenny-ornl May 14, 2018
1ac7096
[CodeView] Improve debugging of virtual base class member variables
bwyma May 14, 2018
6e7650d
[analyzer] Extend the ObjCAutoreleaseWriteChecker to warn on captures…
May 14, 2018
a9d58a0
[analyzer] Re-apply r331096 "CStringChecker: Add support for BSD strl…
haoNoQ May 14, 2018
82cd820
[c++17] Fix assertion on synthesizing deduction guides after a fatal …
vsapsai May 14, 2018
1680f6c
Enable control flow pruning of float overflow warnings.
Weverything May 14, 2018
5d6cd7c
[AST] Fix printing tag decl groups in decl contexts
jdenny-ornl May 15, 2018
533b602
[X86] Revert part of r332266: Use __builtin_convertvector to replace …
topperc May 15, 2018
76da53d
Make ast-print-record-decl.c pass on Windows after r332314
zmodem May 15, 2018
de8567c
[ASTImporter] Extend lookup logic in class templates
a-sidorin May 15, 2018
c56c870
[Solaris] Only define _REENTRANT if -pthread
rorth May 15, 2018
ff0626e
[clang] Update uses of DEBUG macro to LLVM_DEBUG.
nzaghen May 15, 2018
f6d41ea
update two comments as suggested on https://reviews.llvm.org/D46843
nico May 15, 2018
a48ed89
[OPENMP, NVPTX] Do not globalize variables with reference/pointer types.
alexey-bataev May 15, 2018
88e10fe
[Hexagon] Add driver options for subtarget features
May 15, 2018
df58e5d
Fixed some rtti-options tests.
May 15, 2018
ca22363
Address post-commit review comments after r328731. NFC.
ahatanaka May 15, 2018
126ee5d
Move helper classes into anonymous namespaces. NFCI.
d0k May 15, 2018
0be5162
Don't produce a redundant "auto type is incompatible with C++98" on e…
zygoloid May 15, 2018
ddc500f
[Documentation] Fix Release Notes format issues.
EugeneZelenko May 15, 2018
0d65696
[Attr] Don't print implicit attributes
jdenny-ornl May 15, 2018
2f3b399
[analyzer] Make plist-html diagnostic consumer produce multi-file rep…
haoNoQ May 16, 2018
dd41a58
Revert commits r332160, r332164, r332236.
dyung May 16, 2018
925ba27
[analyzer] Do not crash on callback for call_once passed by value
May 16, 2018
623218c
Fix 32-bit buildbots.
zygoloid May 16, 2018
9eb858c
clang-format: tweak formatting of variable initialization blocks
francoisferrand May 16, 2018
5a50603
clang-format: Allow optimizer to break template declaration.
francoisferrand May 16, 2018
ad35972
[diagtool] Add diagtool to install target.
JDevlieghere May 16, 2018
be57045
Test commit access: remove superflous spaces
martong May 16, 2018
983ac4e
[CodeComplete] Expose helpers to get RawComment of completion result.
ilya-biryukov May 16, 2018
bfc7cfa
[AST] Added a helper to extract a user-friendly text of a comment.
ilya-biryukov May 16, 2018
e1ae43b
[analyzer] Improve the modeling of memset().
movie-travel-code May 16, 2018
d4492e4
Fix an Index test caused by a clang-format change (r332436).
May 16, 2018
b168e23
[OPENMP, NVPTX] Add check for SPMD mode in orphaned parallel directives.
alexey-bataev May 16, 2018
72a4187
[Frontend] Avoid running plugins during code completion parse
May 16, 2018
962b74c
Add support for __declspec(code_seg("segname"))
May 16, 2018
ac0a943
[OpenCL] make test independent of optimizer
rotateright May 16, 2018
0bde186
[Attr] Don't print fake MSInheritance argument
jdenny-ornl May 16, 2018
90a2c3d
[OPENMP] DO not crash on combined constructs in declare target
alexey-bataev May 16, 2018
1d870f0
Revert r332474: [Attr] Don't print fake MSInheritance argument
jdenny-ornl May 16, 2018
b631fcb
[Attr] Don't print fake MSInheritance argument
jdenny-ornl May 16, 2018
96b95b5
[Modules] Do not diagnose missing import in recovery mode if there is…
bcardosolopes May 16, 2018
1b1c8e4
Add lit tests forgotten for R332470
May 16, 2018
2bf4614
[Sema] Fix assertion when constructor is disabled with partially spec…
vsapsai May 16, 2018
746a45c
[analyzer] Change the warning message for GCD antipattern checker
May 16, 2018
9a64e8c
[ASTMatchers] Introduce a blockDecl matcher for matching block declar…
May 16, 2018
08472b5
[analyzer] Extend ObjCAutoreleaseWriteChecker to catch block declarat…
May 16, 2018
e831748
Fix rL332458: [AST] Added a helper to extract a user-friendly text of…
legrosbuffle May 17, 2018
96865fb
[libclang] Allow skipping function bodies in preamble only
May 17, 2018
b9ed9dc
[clang-format] Fix putting ObjC message arguments in one line for mul…
jacek1727 May 17, 2018
e0cb87f
Revert https://reviews.llvm.org/D46050 and https://reviews.llvm.org/D…
May 17, 2018
3303890
[Frontend] Avoid running plugins during code completion parse
May 17, 2018
94fc51b
[libclang] Allow skipping function bodies in preamble only
May 17, 2018
861f2f2
[ASTImporter] Fix missing implict CXXRecordDecl
martong May 17, 2018
b857398
Add vfs::FileSystem::getRealPath
May 17, 2018
be0479c
CodeGen: Fix invalid bitcast for lifetime.start/end
yxsamliu May 17, 2018
ae156fd
Use dotted format of version tuple for availability diagnostics
jkorous-apple May 17, 2018
33b2c38
[AArch64] Correct inline assembly test case for S modifier [NFC]
smithp35 May 17, 2018
7257469
Fix __uuidof handling on non-type template parameter in C++17
nico May 17, 2018
2528a79
[CUDA] Make std::min/max work when compiling in C++14 mode with a C++…
May 17, 2018
80b1eed
[CUDA] Allow "extern __shared__ Foo foo[]" within anon. namespaces.
May 17, 2018
52b94ab
[sanitizer] Don't add --export-dynamic for Myriad
googlewalt May 17, 2018
b0a50d1
Fix a mangling failure on clang-cl C++17
rnk May 17, 2018
d5660b0
Add missing test case for r332639
rnk May 17, 2018
02bcd70
Support: Add a raw_ostream::write_zeros() function. NFCI.
pcc May 17, 2018
9d9b33c
Do not try to remove invisible Decls from DeclContext
martong May 18, 2018
4fb03d7
This patch aims to match the changes introduced
May 18, 2018
f10aa01
[VFS] Implement getRealPath for OverlayFileSystem.
May 18, 2018
be7fed5
Move #include manipulation code to new lib/Tooling/Inclusions.
May 18, 2018
69f63a0
[HIP] Support offloading by linker script
yxsamliu May 18, 2018
d422f57
[clang-format/ObjC] Correctly annotate single-component ObjC method i…
bhamiltoncx May 18, 2018
1fa3e26
[ASTImporter] Enable disabled but passing test
martong May 18, 2018
20e9101
[Tooling] Add an overload of runToolOnCodeWithArgs that takes VFS
May 18, 2018
aaec3ca
Fix unused variable warning in r332724
May 18, 2018
2baf45a
[X86] Fix a bad cast from mask16 to mask8 in _mm256_mask_cvtepi16_epi…
topperc May 18, 2018
2148f80
MC: Change the streamer ctors to take an object writer instead of a s…
pcc May 18, 2018
b472c48
[Support] Avoid normalization in sys::getDefaultTargetTriple
petrhosek May 18, 2018
d7bc93e
Revert "Move #include manipulation code to new lib/Tooling/Inclusions."
May 18, 2018
6cfc2d4
Support: Simplify endian stream interface. NFCI.
pcc May 18, 2018
746b78d
Revert r332470 (and corresponding tests in r332492).
zygoloid May 18, 2018
ff7fef1
Maintain PS4 ABI compatibility by making the fix made in r331136 not …
dyung May 18, 2018
6588d85
[test] Fix run line to use correct triple
smeenai May 18, 2018
5b04748
Do not enable RTTI with -fexceptions, for PS4
May 18, 2018
a6a3cf5
[Clang Tablegen][RFC] Allow Early Textual Substitutions in `Diagnosti…
EricWF May 19, 2018
bdd8eec
Adjust and fix failing CXX tests after r332799
EricWF May 19, 2018
8315ee9
CodeGen: block capture shouldn't ICE
jfbastien May 19, 2018
beee208
[Driver] Loosen test for LLVM findNearest
modocache May 19, 2018
6b2fbf8
[Driver] Temporarily remove test for LLVM findNearest
modocache May 19, 2018
b212149
Print the qualified name when dumping deserialized decls.
vgvassilev May 20, 2018
4d415cd
Sema: diagnose invalid catch parameter in ObjC
compnerd May 20, 2018
f229fdd
Revert 332750, clang part (see comment on D46910).
nico May 20, 2018
4029c7d
[X86] Remove mask arguments from permvar builtins/intrinsics. Use a s…
topperc May 20, 2018
59e6300
[X86] Remove some unused builtins.
topperc May 21, 2018
5ade99a
[X86] Remove some preprocessor feature checks from intrinsic headers
topperc May 21, 2018
9f2f890
[CodeGen] Disable aggressive structor optimizations at -O0, take 2
labath May 21, 2018
dc6b868
[Sema] Fix incorrect packed aligned structure layout
momchil-velikov May 21, 2018
6b45048
[CodeGen] Recognize more cases of zero initialization
spavloff May 21, 2018
a3f8c02
[AMDGPU] fixes for lds f32 builtins
dfukalov May 21, 2018
5f1f5ea
[OPENMP-SIMD] Fix PR37536: Fix definition of _OPENMP macro.
alexey-bataev May 21, 2018
487e38f
[Clang Tablegen] Add llvm_unreachable() to getModifierName()
searlmc1 May 21, 2018
00947e5
Revert r332028; see PR37545 for details.
zygoloid May 21, 2018
d0ed64b
CodeGen: Add a dwo output file argument to addPassesToEmitFile and ho…
pcc May 21, 2018
770ecb4
[X86] Use __builtin_convertvector to implement some of the packed int…
topperc May 21, 2018
c3d5cc8
CodeGen, Driver: Start using direct split dwarf emission in clang.
pcc May 21, 2018
1bc8574
Revert r332847; it caused us to miscompile certain forms of reference…
zygoloid May 21, 2018
4f6bfc6
[X86] Remove masking from pternlog llvm intrinsics and use a select i…
topperc May 21, 2018
76f4af3
Fix another make_unique ambiguity.
pcc May 21, 2018
098ec40
[X86] Remove a builtin that should have been removed in r332882.
topperc May 21, 2018
bf4bd4f
Add missing x86-registered-target.
pcc May 21, 2018
d110138
Add missing include for cstdint to Visibility.h
Teemperor May 21, 2018
41efb10
[X86] Prevent inclusion of __wmmintrin_aes.h and __wmmintrin_pclmul.h…
topperc May 22, 2018
f018741
GNUstep Objective-C ABI version 2
May 22, 2018
a423afe
Add cctype include.
May 22, 2018
7f399dc
Revert r332955 "GNUstep Objective-C ABI version 2"
bjope May 22, 2018
a96a9be
[clang-format] Fix crash in getLengthToMatchingParen
krasimirgg May 22, 2018
b8a49af
Revert "Revert r332955 "GNUstep Objective-C ABI version 2""
May 22, 2018
0079831
[objc-gnustep2] Use isalnum instead of a less efficient and nonportab…
May 22, 2018
2adbacd
[objc-gnu] Fix test.
May 22, 2018
e645880
[objc-gnustep2] Use unsigned char to avoid potential UB in isalnum.
May 22, 2018
4fd93a8
clang-format: [JS] do not wrap before any `is`.
mprobst May 22, 2018
f2b4fc2
Revert "Add missing x86-registered-target."
aemerson May 22, 2018
4c0a334
Revert "Fix another make_unique ambiguity."
aemerson May 22, 2018
be49b9d
Revert "CodeGen, Driver: Start using direct split dwarf emission in c…
aemerson May 22, 2018
e5dd68a
[clang-format] Add a test case for crash
krasimirgg May 22, 2018
8fff739
bwyma May 22, 2018
f5fd97a
Call CreateTempMemWithoutCast for ActiveFlag
yxsamliu May 22, 2018
ff6960e
[CodeGen] add tests for abs builtins; NFC
rotateright May 22, 2018
98de0f5
[CodeGen] produce the LLVM canonical form of abs
rotateright May 22, 2018
afefd29
Revert r332982 Call CreateTempMemWithoutCast for ActiveFlag
yxsamliu May 22, 2018
09a2821
Revert "[clang-format] Fix putting ObjC message arguments in one line…
jacek1727 May 22, 2018
7d900be
Reland r332885, "CodeGen, Driver: Start using direct split dwarf emis…
pcc May 22, 2018
56cc670
[X86] Move 128-bit f16c intrinsics to __emmintrin_f16c.h include from…
topperc May 22, 2018
a477350
[X86] Add __emmintrin_f16c.h to module map and CMakeLists.
topperc May 22, 2018
7dbbc58
[X86] Add two missing #endif directives to immintrin.h that should ha…
topperc May 22, 2018
5a1231e
[X86] Another attempt at fixing the intrinsic module map for rr333014.
topperc May 22, 2018
9f33b6a
[X86] Remove mask argument from some builtins that are handled comple…
topperc May 22, 2018
ab89fc4
[X86] As mentioned in post-commit feedback in D47174, move the 128 bi…
topperc May 22, 2018
067ba09
[CodeGen] use nsw negation for builtin abs
rotateright May 22, 2018
5ae11cd
Use zeroinitializer for (trailing zero portion of) large array initia…
zygoloid May 23, 2018
08ee284
[AST][ObjC] Print implicit property expression that only has a setter…
hyp May 23, 2018
c7f760c
This is a test commit.
devnexen May 23, 2018
bb92f34
[analyzer] CStringChecker fix for strlcpy when no bytes are copied to…
devnexen May 23, 2018
fbd2776
[X86] Remove mask argument from more builtins that are handled comple…
topperc May 23, 2018
1300ef2
[X86] In the floating point max reduction intrinsics, negate infinity…
topperc May 23, 2018
1c510b5
[X86] Undef the vector reduction helper macros when we're done with t…
topperc May 23, 2018
c11d1b7
[DOXYGEN] Formatting changes for better intrinsics documentation rend…
May 23, 2018
afb957d
Revert r333044 "Use zeroinitializer for (trailing zero portion of) la…
zmodem May 23, 2018
0c65ba5
Fix unaligned memory access when reading INPUT_FILE_OFFSETS data
Teemperor May 23, 2018
e886a72
Test commit
Szelethus May 23, 2018
f7ac5a4
Fix duplicate class template definitions problem
martong May 23, 2018
1ef6dbb
[clang-format] Break template declarations followed by comments
krasimirgg May 23, 2018
71643f0
[ASTImporter] Fix missing implict CXXRecordDecl in ClassTemplateSpeci…
martong May 23, 2018
e165ea1
[clang-format] fix buildbots after r333085
krasimirgg May 23, 2018
d303be3
Test Commit. Fix namespace comment
mikhailramalho May 23, 2018
7d2df6b
[CUDA] Fixed the list of GPUs supported by CUDA-9.
Artem-B May 23, 2018
7eb6f67
[X86] Move all Intel defined intrinsic includes into immintrin.h
topperc May 23, 2018
611c447
[modules] Mark __wmmintrin_pclmul.h/__wmmintrin_aes.h as textual
Teemperor May 23, 2018
54f3f9c
[X86] Move the include of clzerointrin.h from immintrin.h back to x86…
topperc May 23, 2018
02f3a0b
Rework __builtin_classify_type support to better match GCC and to not…
zygoloid May 23, 2018
38a4b05
Use zeroinitializer for (trailing zero portion of) large array initia…
zygoloid May 23, 2018
177caf4
[Sema][ObjC] Do not DiagnoseUseOfDecl in LookupMemberExpr
cachemeifyoucan May 24, 2018
015b5eb
Migrate libcalls-fno-builtin.c test from checking optimized assembly
echristo May 24, 2018
0504bf2
Add Builtins.def support for fread and fwrite to ensure that -fno-bui…
echristo May 24, 2018
6948c9e
[Sparc] Use the leon arch for Leon3's when using an external assembler
doac May 24, 2018
be60485
[X86] NFC Include immintrin.h in CodeGen tests
GBuella May 24, 2018
4d35581
[ASTImporter] Add unit tests for structural equivalence
martong May 24, 2018
c6b61de
Fix ASTImporterTest on Windows after r333082
zmodem May 24, 2018
db9e5e9
[clang-format] Fix putting ObjC message arguments in one line for mul…
jacek1727 May 24, 2018
32ebed1
[VFS] Implement getRealPath in InMemoryFileSystem.
May 24, 2018
76f1300
[analyzer] Move RangeSet related declarations into the RangedConstrai…
mikhailramalho May 24, 2018
9c82d4f
Disable an in-memory vfs file path test on windows.
May 24, 2018
620cb93
[bash-completion] Fix tab separation on macOS
benlangmuir May 24, 2018
d3db35d
[X86] Fix a bad cast in _mm512_mask_abs_epi32 and _mm512_maskz_abs_ep…
topperc May 24, 2018
13c1a49
Improve diagnostics for config mismatches with -fmodule-file.
zygoloid May 24, 2018
3211ce5
Switch a couple of users of LangOpts::GNUMode to the more appropriate…
zygoloid May 24, 2018
bfc0896
Improve diagonstic for braced-init-list as operand to ?: expression.
zygoloid May 24, 2018
956d9d4
Make atomic non-member functions as nonnull
jfbastien May 25, 2018
724adfb
[x86] invpcid intrinsic
GBuella May 25, 2018
296b914
[ASTImporter] Fix ClassTemplateSpecialization in wrong DC
martong May 25, 2018
ea1c0a4
Optionally add code completion results for arrow instead of dot
May 25, 2018
555aa33
[analyzer] Added template argument lists to the Pathdiagnostic output
Szelethus May 25, 2018
1cefbc5
Fix members initialization order in constructor (fails with -Werror)
May 25, 2018
03bda85
[analyzer] Added a getLValue method to ProgramState for bases
Szelethus May 25, 2018
8def6e8
[Sema] Add tests for weak functions
hahnjo May 25, 2018
4da5751
Follow-up fix for nonnull atomic non-member functions
jfbastien May 25, 2018
113c3c7
[OPENMP, NVPTX] Fixed codegen for orphaned parallel region.
alexey-bataev May 25, 2018
19379d6
Convert clang-interpreter to ORC JIT API
sas May 25, 2018
b3ab2ec
[Support] Avoid normalization in sys::getDefaultTargetTriple
petrhosek May 25, 2018
6ce4c55
[DebugInfo] Don't bother with MD5 checksums of preprocessed files.
pogo59 May 25, 2018
7d02f59
Support Swift calling convention for PPC64 targets
bob-wilson May 25, 2018
913c149
[X86] Mark a few more builtins const that were missed in r331814.
topperc May 25, 2018
401f265
Revert "[DebugInfo] Don't bother with MD5 checksums of preprocessed f…
pogo59 May 25, 2018
da65f44
[X86] Correct the target features on two avx512bw builtins that were …
topperc May 25, 2018
b1da4a2
[X86] Add const to another builtin that was missed from r331814.
topperc May 25, 2018
11a4d05
Fix typo + reflow comment; NFC
gburgessiv May 25, 2018
768fb8f
[analyzer] Add security checks for bcmp(), bcopy(), bzero().
haoNoQ May 26, 2018
e7361de
Test commit; please ignore.
gburgessiv May 26, 2018
e42b462
[ClangDiagnostics] Silence warning about fallthrough after PrintFatal…
davidbolvansky May 26, 2018
f4e6b72
[X86] Rewrite the max and min reduction intrinsics to make better use…
topperc May 26, 2018
4209cbd
[X86] Remove mask from avx512ifma builtins. Use a select instruction …
topperc May 26, 2018
e1763a3
Revert r333347 "[X86] Rewrite the max and min reduction intrinsics to…
topperc May 26, 2018
8d75a43
[DebugInfo] Fix typo. NFC
MaskRay May 27, 2018
cea7439
Introduces --stats-only option to only show changes in statistics.
mikhailramalho May 28, 2018
45a3948
[coroutines] Pass implicit object parameter to promise ctor (fix BUG3…
GorNishanov May 28, 2018
2c6477e
[RISCV] Add -mrelax/-mno-relax flags to enable/disable RISCV linker r…
ShivaChen May 29, 2018
229a8c3
[X86] Merge the 3 different flavors of masked vpermi2var/vpermt2var b…
topperc May 29, 2018
07552f1
Testing commit access with whitespace change.
May 29, 2018
c01eff1
Fix emission of phony dependency targets when adding extra deps
dstenb May 29, 2018
29dd917
[analyzer] const init: handle non-explicit cases more accurately
May 29, 2018
3de179a
add test for r332053
nico May 29, 2018
237a853
[X86] Tag some 128/256 load/store instructions as requiring avx512vl …
topperc May 29, 2018
79b32e7
[CodeGen][Darwin] Set the calling-convention of thread-local variable
ahatanaka May 29, 2018
77a37b6
[Driver] Rename DefaultTargetTriple to TargetTriple
petrhosek May 29, 2018
67a7d38
Check pointer null-ness before dereferencing it.
Weverything May 29, 2018
722b999
Revert r332839.
zygoloid May 30, 2018
68d42ff
Add action builder for HIP
yxsamliu May 30, 2018
ce2e84a
Add HIP toolchain
yxsamliu May 30, 2018
e8b1f56
[Sema] Use %sub to cleanup overload diagnostics
EricWF May 30, 2018
68e83bf
[ODRHash] Support FunctionTemplateDecl in records.
Weverything May 30, 2018
2364311
Fix test failure after r333485.
EricWF May 30, 2018
0795e67
Make the mangled name collision diagnostic a bit more useful by listi…
zygoloid May 30, 2018
4c91639
Fix test failure after r333485. Try 2.
EricWF May 30, 2018
121b4c8
[X86] Fix the names of a bunch of icelake intrinsics.
topperc May 30, 2018
7a3b366
Sema: Add a flag for rejecting member pointers with incomplete base t…
pcc May 30, 2018
91f7575
Update NRVO logic to support early return
tzik May 30, 2018
67206b2
Protect a clang-cl file path with --.
pcc May 30, 2018
524aae5
[X86] Remove masking from the AVX512VNNI builtins. Use a select in IR…
topperc May 30, 2018
cb6be1e
[Sparc] Add floating-point register names
doac May 30, 2018
206c89d
Support __iso_volatile_load8 etc on aarch64-win32.
statham-arm May 30, 2018
0a0233b
Fix -Wunused in NDEBUG introduced by HIP r333484
sam-mccall May 30, 2018
c62addc
Add missing curly from r333509
zmodem May 30, 2018
86f879c
[ASTImporter] Corrected lookup at import of templated record decl
martong May 30, 2018
3d25876
Fix a (possible) division by zero check in the CmpRuns script
mikhailramalho May 30, 2018
c6bd6cd
[analyzer] Remove the redundant check about same state transition in …
movie-travel-code May 30, 2018
f311608
Reland "Move #include manipulation code to new lib/Tooling/Inclusions."
May 30, 2018
170c6a3
Revert "Reland "Move #include manipulation code to new lib/Tooling/In…
May 30, 2018
87f534d
[Sema] Don't skip function bodies with 'auto' without trailing return…
ilya-biryukov May 30, 2018
dffb1fd
Revert "[clang-format] Fix putting ObjC message arguments in one line…
jacek1727 May 30, 2018
7f89721
Revert "Update NRVO logic to support early return"
sam-mccall May 30, 2018
3954072
[clang-format/ObjC] Correctly parse Objective-C methods with 'class' …
bhamiltoncx May 30, 2018
cf48649
[X86] Lowering FMA intrinsics to native IR (Clang part)
GBuella May 30, 2018
3c60ee5
[X86] Remove 'return' from a bunch of intrinsics that return void and…
topperc May 30, 2018
35691f2
[X86] Reduce the number of setzero intrinsics to just the set defined…
topperc May 30, 2018
958b3e2
Flang driver changes ported to master branch
schweitzpgi Jan 5, 2018
7cdbc8b
Flang driver changes ported to master branch
schweitzpgi Jan 5, 2018
e3a45a0
Non-functional change. Reformat and regroup the member functions.
schweitzpgi Apr 16, 2018
f4fb2ae
Remove unused method decl
schweitzpgi May 30, 2018
d54efe3
Merge branch 'master' of github.com:schweitzpgi/flang-driver
schweitzpgi May 30, 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
  •  
  •  
  •  
22 changes: 17 additions & 5 deletions bindings/python/clang/cindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,12 @@ def get_usr(self):
another translation unit."""
return conf.lib.clang_getCursorUSR(self)

def get_included_file(self):
"""Returns the File that is included by the current inclusion cursor."""
assert self.kind == CursorKind.INCLUSION_DIRECTIVE

return conf.lib.clang_getIncludedFile(self)

@property
def kind(self):
"""Return the kind of this cursor."""
Expand Down Expand Up @@ -1644,7 +1650,7 @@ def canonical(self):
def result_type(self):
"""Retrieve the Type of the result for this Cursor."""
if not hasattr(self, '_result_type'):
self._result_type = conf.lib.clang_getResultType(self.type)
self._result_type = conf.lib.clang_getCursorResultType(self)

return self._result_type

Expand Down Expand Up @@ -3085,8 +3091,9 @@ def __repr__(self):
return "<File: %s>" % (self.name)

@staticmethod
def from_cursor_result(res, fn, args):
assert isinstance(res, File)
def from_result(res, fn, args):
assert isinstance(res, c_object_p)
res = File(res)

# Copy a reference to the TranslationUnit to prevent premature GC.
res._tu = args[0]._tu
Expand Down Expand Up @@ -3568,6 +3575,11 @@ def cursor(self):
[Cursor, c_uint, c_uint],
SourceRange),

("clang_getCursorResultType",
[Cursor],
Type,
Type.from_result),

("clang_getCursorSemanticParent",
[Cursor],
Cursor,
Expand Down Expand Up @@ -3696,8 +3708,8 @@ def cursor(self):

("clang_getIncludedFile",
[Cursor],
File,
File.from_cursor_result),
c_object_p,
File.from_result),

("clang_getInclusions",
[TranslationUnit, callbacks['translation_unit_includes'], py_object]),
Expand Down
12 changes: 12 additions & 0 deletions bindings/python/tests/cindex/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,18 @@ def test_result_type(self):
t = foo.result_type
self.assertEqual(t.kind, TypeKind.INT)

def test_result_type_objc_method_decl(self):
code = """\
@interface Interface : NSObject
-(void)voidMethod;
@end
"""
tu = get_tu(code, lang='objc')
cursor = get_cursor(tu, 'voidMethod')
result_type = cursor.result_type
self.assertEqual(cursor.kind, CursorKind.OBJC_INSTANCE_METHOD_DECL)
self.assertEqual(result_type.kind, TypeKind.VOID)

def test_availability(self):
tu = get_tu('class A { A(A const&) = delete; };', lang='cpp')

Expand Down
12 changes: 12 additions & 0 deletions bindings/python/tests/cindex/test_translation_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ def eq(expected, actual):
for i in zip(inc, tu.get_includes()):
eq(i[0], i[1])

def test_inclusion_directive(self):
src = os.path.join(kInputsDir, 'include.cpp')
h1 = os.path.join(kInputsDir, "header1.h")
h2 = os.path.join(kInputsDir, "header2.h")
h3 = os.path.join(kInputsDir, "header3.h")
inc = [h1, h3, h2, h3, h1]

tu = TranslationUnit.from_source(src, options=TranslationUnit.PARSE_DETAILED_PROCESSING_RECORD)
inclusion_directive_files = [c.get_included_file().name for c in tu.cursor.get_children() if c.kind == CursorKind.INCLUSION_DIRECTIVE]
for i in zip(inc, inclusion_directive_files):
self.assert_normpaths_equal(i[0], i[1])

def test_save(self):
"""Ensure TranslationUnit.save() works."""

Expand Down
38 changes: 24 additions & 14 deletions cmake/caches/Fuchsia-stage2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,29 @@ 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 "")

set(LLVM_BUILTIN_TARGETS "default;x86_64-fuchsia;aarch64-fuchsia" CACHE STRING "")

# Set the per-target builtins options.
foreach(target x86_64;aarch64)
set(BUILTINS_${target}-fuchsia_CMAKE_SYSROOT ${FUCHSIA_${target}_SYSROOT} CACHE PATH "")
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()

set(LLVM_RUNTIME_TARGETS "default;x86_64-fuchsia;aarch64-fuchsia;x86_64-fuchsia-asan:x86_64-fuchsia;aarch64-fuchsia-asan:aarch64-fuchsia" CACHE STRING "")

# Set the default target runtimes options.
if(APPLE)
# Disable installing libc++, libc++abi or libunwind on Darwin, since Clang
# driver doesn't know how to use libraries that are part of the toolchain.
set(LIBUNWIND_INSTALL_HEADERS OFF CACHE BOOL "")
set(LIBUNWIND_INSTALL_LIBRARY OFF CACHE BOOL "")
set(LIBCXXABI_INSTALL_HEADERS OFF CACHE BOOL "")
set(LIBCXXABI_INSTALL_LIBRARY OFF CACHE BOOL "")
set(LIBCXX_INSTALL_HEADERS OFF CACHE BOOL "")
set(LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "")
else()
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 "")
Expand All @@ -63,10 +65,17 @@ endif()

# Set the per-target runtimes options.
foreach(target x86_64;aarch64)
set(RUNTIMES_${target}-fuchsia_CMAKE_BUILD_WITH_INSTALL_RPATH ON CACHE BOOL "")
set(RUNTIMES_${target}-fuchsia_CMAKE_SYSROOT ${FUCHSIA_${target}_SYSROOT} CACHE PATH "")
set(RUNTIMES_${target}-fuchsia_CMAKE_SYSTEM_NAME Fuchsia CACHE STRING "")
set(RUNTIMES_${target}-fuchsia_UNIX 1 CACHE BOOL "")
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 "")
Expand Down Expand Up @@ -100,6 +109,7 @@ set(LLVM_TOOLCHAIN_TOOLS
llvm-readelf
llvm-readobj
llvm-size
llvm-strip
llvm-symbolizer
opt
sancov
Expand Down
8 changes: 5 additions & 3 deletions cmake/caches/Fuchsia.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ set(CLANG_BOOTSTRAP_TARGETS
install-distribution
clang CACHE STRING "")

foreach(target x86_64;aarch64)
if(FUCHSIA_${target}_SYSROOT)
list(APPEND EXTRA_ARGS -DFUCHSIA_${target}_SYSROOT=${FUCHSIA_${target}_SYSROOT})
get_cmake_property(variableNames VARIABLES)
foreach(variableName ${variableNames})
if(variableName MATCHES "^STAGE2_")
string(REPLACE "STAGE2_" "" new_name ${variableName})
list(APPEND EXTRA_ARGS "-D${new_name}=${${variableName}}")
endif()
endforeach()

Expand Down
Loading