[PATCH] D93377: [Clang] Add __ibm128 type to represent ppc_fp128

2020-12-15 Thread Qiu Chaofan via Phabricator via cfe-commits
qiucf created this revision. qiucf added reviewers: nemanjai, rjmccall, rsmith, hubert.reinterpretcast, akyrtzi, PowerPC. Herald added subscribers: dexonsmith, steven.zhang, shchenz, arphaman, kbarton. qiucf requested review of this revision. Herald added a reviewer: jdoerfert. Herald added

[PATCH] D93375: [clang][driver] Add -ansi option to CompileOnly group

2020-12-15 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder created this revision. tbaeder added a reviewer: dang. tbaeder requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. -ansi is documented as being the "same as -std=c89", but there are differences when passing it to a link: clang -c

[PATCH] D92445: [PowerPC] Add powerpcle target.

2020-12-15 Thread Daniel Kolesa via Phabricator via cfe-commits
q66 added a comment. we are also interested in running this on "true" 32-bit hardware eventually, so not restricting to POWER7 would be a good thing, potentially Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D92445/new/

[PATCH] D92445: [PowerPC] Add powerpcle target.

2020-12-15 Thread Daniel Kolesa via Phabricator via cfe-commits
q66 added a comment. I am interested in this, since we are currently bootstrapping an entire ppcle userland in our distribution (glibc and musl) - we already have everything generally working (on ppc64le host), with llvm being a notable blocker for some things - so i will be testing this in

[PATCH] D92041: [clangd] Add hover info for `this` expr

2020-12-15 Thread xndcn via Phabricator via cfe-commits
xndcn added a comment. In D92041#2454236 , @sammccall wrote: > Very nice, thanks! > I'll land this for you now. Thank you very much! Learned a lot about clangd and clang AST from this! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D93078: [utils] Fix UpdateTestChecks case where 2 runs differ for last label

2020-12-15 Thread Pengfei Wang via Phabricator via cfe-commits
pengfei added inline comments. Comment at: llvm/utils/update_analyze_test_checks.py:129 + +common.warn_on_failed_prefixes(func_dict) is_in_function = False mtrofin wrote: > pengfei wrote: > > Can we move these warn to common.py? > Come to think of

[PATCH] D93301: [flang][driver] Add support for `-c` and `-emit-obj`

2020-12-15 Thread Sourabh Singh Tomar via Phabricator via cfe-commits
SouraVX added a comment. Thanks! for the patch, some minor comments inlined. Rest LGTM. Let others also have a look. Comment at: clang/include/clang/Driver/Options.td:4329 HelpText<"Generate machine code, but discard output">; -def emit_obj : Flag<["-"], "emit-obj">, -

[PATCH] D92720: [HIP] unbundle bundled preprocessor output

2020-12-15 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG4f14b80803a4: [HIP] unbundle bundled preprocessor output (authored by yaxunl). Herald added a project: clang. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] 4f14b80 - [HIP] unbundle bundled preprocessor output

2020-12-15 Thread Yaxun Liu via cfe-commits
Author: Yaxun (Sam) Liu Date: 2020-12-15T22:14:18-05:00 New Revision: 4f14b80803a458209b6b11daa3ec05076b8c4973 URL: https://github.com/llvm/llvm-project/commit/4f14b80803a458209b6b11daa3ec05076b8c4973 DIFF:

[PATCH] D92975: Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef

2020-12-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith planned changes to this revision. dexonsmith added a comment. Given that 5de00f3b56805c7e980f049ceb3f166f8c69cec0 updates the return value of `FileEntry::getDir` as a (self-described) hack, and `FileEntryRef::getDir` won't be similarly updated, it's somewhat reasonable that this

[PATCH] D92975: Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef

2020-12-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith reopened this revision. dexonsmith added a comment. This revision is now accepted and ready to land. Reopening for now, although I haven't updated the patch yet, or quite tracked down the issue. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] c415e70 - [ASTMatchers][NFC] Strip prefixes eagerly in dynamic matcher arg traits.

2020-12-15 Thread Nathan James via cfe-commits
Author: Nathan James Date: 2020-12-16T01:56:30Z New Revision: c415e709e9926b4aed897b55931f319a5f512e85 URL: https://github.com/llvm/llvm-project/commit/c415e709e9926b4aed897b55931f319a5f512e85 DIFF: https://github.com/llvm/llvm-project/commit/c415e709e9926b4aed897b55931f319a5f512e85.diff LOG:

[PATCH] D93103: Enable the _ExtInt extension on the BPF Target

2020-12-15 Thread Alexei Starovoitov via Phabricator via cfe-commits
ast requested changes to this revision. ast added a comment. This revision now requires changes to proceed. What's a use case? The test is necessary. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93103/new/ https://reviews.llvm.org/D93103

[PATCH] D92920: [clang-tidy] Add a diagnostic callback to parseConfiguration

2020-12-15 Thread Nathan James via Phabricator via cfe-commits
njames93 updated this revision to Diff 312080. njames93 added a comment. Added back null check Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D92920/new/ https://reviews.llvm.org/D92920 Files: clang-tools-extra/clang-tidy/ClangTidyOptions.cpp

[PATCH] D92920: [clang-tidy] Add a diagnostic callback to parseConfiguration

2020-12-15 Thread Nathan James via Phabricator via cfe-commits
njames93 added inline comments. Comment at: clang-tools-extra/clang-tidy/ClangTidyOptions.cpp:400 +DiagCallback Handler) { + llvm::yaml::Input Input(Config, nullptr, Handler ? diagHandlerImpl : nullptr, + );

[PATCH] D92800: [Clang] Make nomerge attribute a function attribute as well as a statement attribute.

2020-12-15 Thread Zequan Wu via Phabricator via cfe-commits
zequanwu added inline comments. Comment at: clang/test/CodeGen/attr-nomerge.cpp:73 +// CHECK-DAG: attributes #[[ATTR2]] = {{{.*}}nomerge{{.*}}} +// CHECK-DAG: attributes #[[ATTR3]] = {{{.*}}nomerge{{.*}}} aaron.ballman wrote: > Can you also add a test case to

[PATCH] D92800: [Clang] Make nomerge attribute a function attribute as well as a statement attribute.

2020-12-15 Thread Zequan Wu via Phabricator via cfe-commits
zequanwu updated this revision to Diff 312078. zequanwu marked 4 inline comments as done. zequanwu added a comment. address comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D92800/new/ https://reviews.llvm.org/D92800 Files:

[PATCH] D91980: [OpenMP] Add initial support for `omp [begin/end] assumes`

2020-12-15 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. In D91980#2456600 , @thakis wrote: > In addition to the build error, it also broke check-clang everywhere as far > as I can tell. > mac: http://45.33.8.238/macm1/292/step_6.txt > linux: http://45.33.8.238/linux/35399/step_7.txt

[PATCH] D91980: [OpenMP] Add initial support for `omp [begin/end] assumes`

2020-12-15 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. In addition to the build error, it also broke check-clang everywhere as far as I can tell. mac: http://45.33.8.238/macm1/292/step_6.txt linux: http://45.33.8.238/linux/35399/step_7.txt win: http://45.33.8.238/win/29934/step_7.txt Repository: rG LLVM Github Monorepo

[PATCH] D91302: Handle template instantiations better in clang-tidy check

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312071. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91302/new/ https://reviews.llvm.org/D91302 Files: clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp

[PATCH] D78938: Make LLVM build in C++20 mode

2020-12-15 Thread Barry Revzin via Phabricator via cfe-commits
BRevzin added a comment. In D78938#2450915 , @nlopes wrote: > Thanks @lebedev.ri for the pointer! > I started working on exactly the same thing as I was trying to link a C++20 > project with LLVM. > @BRevzin is there anything missing in this patch? Do

[PATCH] D93356: [libomptarget][amdgpu] Call into deviceRTL instead of ockl

2020-12-15 Thread Jon Chesterfield via Phabricator via cfe-commits
JonChesterfield created this revision. JonChesterfield added reviewers: jdoerfert, grokos, ABataev, ronlieb, tianshilei1992. Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, jvesely, kzhuravl. JonChesterfield requested review of this revision. Herald added subscribers: openmp-commits,

[clang] 1efd7a7 - Revert "[OpenMP] Add initial support for `omp [begin/end] assumes`"

2020-12-15 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-12-15T18:03:10-06:00 New Revision: 1efd7a73acdf1e3f61bbcf82d3c30be41771ce6b URL: https://github.com/llvm/llvm-project/commit/1efd7a73acdf1e3f61bbcf82d3c30be41771ce6b DIFF:

[PATCH] D91980: [OpenMP] Add initial support for `omp [begin/end] assumes`

2020-12-15 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. I guess I revert it for now :( Comment at: llvm/include/llvm/Frontend/OpenMP/OMPConstants.h:101 +#include "llvm/Frontend/OpenMP/OMPKinds.def" +}; + mehdi_amini wrote: > This is broken on gcc-5: > ``` >

[PATCH] D92975: Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef

2020-12-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. There were also two Windows bots that emailed me yesterday afternoon, I just missed them somehow :/. - http://lab.llvm.org:8011/#/builders/119/builds/1381 (llvm-clang-win-x-aarch64) - http://lab.llvm.org:8011/#/builders/60/builds/1175 (llvm-clang-win-x-armv7l) FTR,

[PATCH] D91302: Handle template instantiations better in clang-tidy check

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added inline comments. Comment at: clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp:20 +namespace ast_matchers { +AST_POLYMORPHIC_MATCHER_P2(hasAnyArgumentWithParam, + AST_POLYMORPHIC_SUPPORTED_TYPES(CallExpr,

[PATCH] D91980: [OpenMP] Add initial support for `omp [begin/end] assumes`

2020-12-15 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added inline comments. Comment at: llvm/include/llvm/Frontend/OpenMP/OMPConstants.h:101 +#include "llvm/Frontend/OpenMP/OMPKinds.def" +}; + This is broken on gcc-5: ``` llvm/include/llvm/Frontend/OpenMP/OMPConstants.h:101:1: error: could not

[PATCH] D91302: Handle template instantiations better in clang-tidy check

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312063. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91302/new/ https://reviews.llvm.org/D91302 Files: clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp

[PATCH] D80623: WIP: Add an API to simplify setting TraversalKind in clang-tidy matchers

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312062. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D80623/new/ https://reviews.llvm.org/D80623 Files: clang/include/clang/ASTMatchers/ASTMatchFinder.h

[PATCH] D93354: [clang-tidy] Make clang-format and include-order-check coherent again

2020-12-15 Thread Nathan James via Phabricator via cfe-commits
njames93 created this revision. njames93 added reviewers: hokein, kadircet. Herald added a subscriber: xazax.hun. njames93 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. After D91602 gmock support was

[PATCH] D93324: Avoid isImplicit call on object which could be nullptr

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG702f822ca5bb: [ASTMatcher] Avoid isImplicit call on object which could be nullptr (authored by stephenkelly). Repository: rG LLVM Github Monorepo

[clang-tools-extra] 0dd8f6f - [ClangTidy] NFC: Add more tests for container-size-empty

2020-12-15 Thread Stephen Kelly via cfe-commits
Author: Stephen Kelly Date: 2020-12-15T23:27:38Z New Revision: 0dd8f6f9035408fc18b4351ae4096a2852aa8fb5 URL: https://github.com/llvm/llvm-project/commit/0dd8f6f9035408fc18b4351ae4096a2852aa8fb5 DIFF: https://github.com/llvm/llvm-project/commit/0dd8f6f9035408fc18b4351ae4096a2852aa8fb5.diff

[clang] 702f822 - [ASTMatcher] Avoid isImplicit call on object which could be nullptr

2020-12-15 Thread Stephen Kelly via cfe-commits
Author: Stephen Kelly Date: 2020-12-15T23:27:38Z New Revision: 702f822ca5bbff96401e9ede39f4ae5c7cbc6b05 URL: https://github.com/llvm/llvm-project/commit/702f822ca5bbff96401e9ede39f4ae5c7cbc6b05 DIFF: https://github.com/llvm/llvm-project/commit/702f822ca5bbff96401e9ede39f4ae5c7cbc6b05.diff

[clang] bc7126b - [FIX] Add the comma missing in D91979

2020-12-15 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-12-15T17:24:53-06:00 New Revision: bc7126b2bc542fdb28347c73a9cb193f5790d93b URL: https://github.com/llvm/llvm-project/commit/bc7126b2bc542fdb28347c73a9cb193f5790d93b DIFF:

[PATCH] D91129: Print source location in the error message when parens are missing around sizeof typename and the expression is inside macro expansion

2020-12-15 Thread Shivanshu Goyal via Phabricator via cfe-commits
shivanshu3 marked an inline comment as done. shivanshu3 added inline comments. Comment at: clang/lib/Parse/ParseExpr.cpp:2267-2280 +SourceLocation OpTokLoc = OpTok.getLocation(); +if (OpTokLoc.isMacroID()) { + SourceLocation OpTokExpansionLoc = +

[PATCH] D91129: Print source location in the error message when parens are missing around sizeof typename and the expression is inside macro expansion

2020-12-15 Thread Shivanshu Goyal via Phabricator via cfe-commits
shivanshu3 updated this revision to Diff 312055. shivanshu3 added a comment. Don't assume that `getLocForEndOfToken` will fail if and only if the token is a macro Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91129/new/

[PATCH] D93350: [Test] Fix undef var in catch-undef-behavior.c

2020-12-15 Thread Thomas Preud'homme via Phabricator via cfe-commits
thopre created this revision. thopre added reviewers: rsmith, rnk, BillyONeal, spatel. thopre requested review of this revision. Herald added a project: clang. Commit 9e52c43090f8cd980167bbd2719878ae36bcf6b5 removed the directive defining LINE_1600 but left a string substitution to that variable

[PATCH] D78938: Make LLVM build in C++20 mode

2020-12-15 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. @BRevzin Please share your name and email if you want someone to commit it for you https://llvm.org/docs/DeveloperPolicy.html#commit-messages Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D78938/new/

[PATCH] D93347: [Test] Fix undef var in attr-speculative-load-hardening.c

2020-12-15 Thread Thomas Preud'homme via Phabricator via cfe-commits
thopre created this revision. thopre added reviewers: zbrid, chandlerc, EricWF. thopre requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Fix use of undefined variable in CHECK-NOT directive in clang test

Re: [PATCH] D92975: Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef

2020-12-15 Thread Duncan P. N. Exon Smith via cfe-commits
Thanks for reverting; sorry I missed your email. > On 2020 Dec 14, at 19:27, Nico Weber via Phabricator > wrote: > > thakis added a comment. > > The revert helped, check-clang is no longer failing on Windows. > > > Repository: > rG LLVM Github Monorepo > > CHANGES SINCE LAST ACTION >

[PATCH] D84186: [clang][cli] Convert Analyzer option string based options to new option parsing system

2020-12-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added inline comments. Comment at: clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h:261-263 /// The inlining stack depth limit. - // Cap the stack depth at 4 calls (5 stack frames, base + 4 calls). - unsigned InlineMaxStackDepth = 5; + unsigned

[clang] 7e7f38f - DR1413 and part of P1815R2: Minor improvements to Clang's determination

2020-12-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-12-15T14:53:26-08:00 New Revision: 7e7f38f853fbf96c6ab2a0e5f9d7747ef8a76ffe URL: https://github.com/llvm/llvm-project/commit/7e7f38f853fbf96c6ab2a0e5f9d7747ef8a76ffe DIFF: https://github.com/llvm/llvm-project/commit/7e7f38f853fbf96c6ab2a0e5f9d7747ef8a76ffe.diff

[clang] 6b760a5 - DR2100: is value-dependent if expr constant-evaluates to a

2020-12-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-12-15T14:53:26-08:00 New Revision: 6b760a50f52142e401a6380ff71f933cda22a909 URL: https://github.com/llvm/llvm-project/commit/6b760a50f52142e401a6380ff71f933cda22a909 DIFF: https://github.com/llvm/llvm-project/commit/6b760a50f52142e401a6380ff71f933cda22a909.diff

[PATCH] D91980: [OpenMP] Add initial support for `omp [begin/end] assumes`

2020-12-15 Thread Johannes Doerfert via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGa5a14cbe7f87: [OpenMP] Add initial support for `omp [begin/end] assumes` (authored by jdoerfert). Repository: rG LLVM Github Monorepo CHANGES

[PATCH] D91979: [Clang][Attr] Introduce the `assume` function attribute

2020-12-15 Thread Johannes Doerfert via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGb9c77542e237: [Clang][Attr] Introduce the `assume` function attribute (authored by jdoerfert). Changed prior to commit:

[clang] a5a14cb - [OpenMP] Add initial support for `omp [begin/end] assumes`

2020-12-15 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-12-15T16:51:34-06:00 New Revision: a5a14cbe7f87e01882ecaa14df5d596cbf38823a URL: https://github.com/llvm/llvm-project/commit/a5a14cbe7f87e01882ecaa14df5d596cbf38823a DIFF:

[clang] b9c7754 - [Clang][Attr] Introduce the `assume` function attribute

2020-12-15 Thread Johannes Doerfert via cfe-commits
Author: Johannes Doerfert Date: 2020-12-15T16:51:34-06:00 New Revision: b9c77542e23756967e77dc42412effc41257a850 URL: https://github.com/llvm/llvm-project/commit/b9c77542e23756967e77dc42412effc41257a850 DIFF:

[PATCH] D84187: [clang][cli] Port DependencyOutput string based options to new option parsing system

2020-12-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. This revision is now accepted and ready to land. LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D84187/new/ https://reviews.llvm.org/D84187

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312039. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93164/new/ https://reviews.llvm.org/D93164 Files: clang/lib/Tooling/CMakeLists.txt

[PATCH] D84190: [clang][cli] Port FrontendOpts simple string based options to new option parsing system

2020-12-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. This revision is now accepted and ready to land. LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D84190/new/ https://reviews.llvm.org/D84190

[PATCH] D84668: [clang][cli] Port TargetOpts simple string based options to new option parsing system

2020-12-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added inline comments. Comment at: clang/lib/Frontend/CompilerInvocation.cpp:248 +template ::value, bool> = true> static void denormalizeSimpleEnum(SmallVectorImpl , I don't think this needs to be templated; it can just use the same prototype it did

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a subscriber: thakis. steveire added a comment. @thakis FYI - I think the GN build would need to be adapted to this. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93164/new/ https://reviews.llvm.org/D93164

[clang] c4736b9 - Don't memcpy from an empty ArrayRef; the base pointer could be null, and

2020-12-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-12-15T14:37:52-08:00 New Revision: c4736b91f87e9163edcdef78891398f32390ffc2 URL: https://github.com/llvm/llvm-project/commit/c4736b91f87e9163edcdef78891398f32390ffc2 DIFF: https://github.com/llvm/llvm-project/commit/c4736b91f87e9163edcdef78891398f32390ffc2.diff

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312033. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93164/new/ https://reviews.llvm.org/D93164 Files: clang/lib/Tooling/CMakeLists.txt

[PATCH] D91129: Print source location in the error message when parens are missing around sizeof typename and the expression is inside macro expansion

2020-12-15 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: clang/lib/Parse/ParseExpr.cpp:2267-2280 +SourceLocation OpTokLoc = OpTok.getLocation(); +if (OpTokLoc.isMacroID()) { + SourceLocation OpTokExpansionLoc = + PP.getSourceManager().getFileLoc(OpTokLoc);

[PATCH] D93094: [clang][cli] Prevent double denormalization

2020-12-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. LGTM too, once the test is fixed. Comment at: clang/unittests/Frontend/CompilerInvocationTest.cpp:267 - ASSERT_THAT(GeneratedArgs, Contains(StrEq("-fdebug-pass-manager"))); + ASSERT_EQ(count(GeneratedArgs,

[PATCH] D92600: [ASTImporter] Add support for importing GenericSelectionExpr AST nodes.

2020-12-15 Thread Gabor Marton via Phabricator via cfe-commits
martong accepted this revision. martong added a comment. This revision is now accepted and ready to land. Thanks for your work, I am glad that finally the Window bug is fixed with a simple solution. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312027. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93164/new/ https://reviews.llvm.org/D93164 Files: clang/lib/Tooling/CMakeLists.txt

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312026. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93164/new/ https://reviews.llvm.org/D93164 Files: clang/lib/Tooling/CMakeLists.txt

[clang] 0eb4378 - Frontend: Fix confusing comment at call to clearOutputFiles, NFC

2020-12-15 Thread Duncan P. N. Exon Smith via cfe-commits
Author: Duncan P. N. Exon Smith Date: 2020-12-15T14:21:37-08:00 New Revision: 0eb4378290ffcd5da650217df3ac3b8c473d5ed6 URL: https://github.com/llvm/llvm-project/commit/0eb4378290ffcd5da650217df3ac3b8c473d5ed6 DIFF:

[PATCH] D91659: Allow enum typedefs to be referenced with the 'enum' specifier under MSVC compat mode

2020-12-15 Thread Shivanshu Goyal via Phabricator via cfe-commits
shivanshu3 added a comment. Ping! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91659/new/ https://reviews.llvm.org/D91659 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D91129: Print source location in the error message when parens are missing around sizeof typename and the expression is inside macro expansion

2020-12-15 Thread Shivanshu Goyal via Phabricator via cfe-commits
shivanshu3 added a comment. Ping! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91129/new/ https://reviews.llvm.org/D91129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire marked 3 inline comments as done. steveire added inline comments. Comment at: clang/lib/Tooling/DumpTool/ASTSrcLocProcessor.cpp:40 + // TODO: Extend this with other clades + namedDecl(hasName("clang::Stmt")).bind("nodeClade")), +

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312024. steveire marked 19 inline comments as done. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93164/new/ https://reviews.llvm.org/D93164 Files:

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a comment. > Do I understand correctly that the workflow is to use the new dumping tool to > generate the needed JSON file that then gets used as input to > generate_cxx_src_locs.py which creates NodeLocationIntrospection.cpp/.h that > then gets used by clang-query (eventually)?

[PATCH] D93164: [AST] Add generator for source location introspection

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire updated this revision to Diff 312023. steveire added a comment. Update Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93164/new/ https://reviews.llvm.org/D93164 Files: clang/lib/Tooling/CMakeLists.txt

[clang] 59decf8 - [clang] Migrate deprecated DebugInfo::get to DILocation::get

2020-12-15 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2020-12-15T13:59:31-08:00 New Revision: 59decf8e9c3d86472073266ad8ee1cc699d94525 URL: https://github.com/llvm/llvm-project/commit/59decf8e9c3d86472073266ad8ee1cc699d94525 DIFF: https://github.com/llvm/llvm-project/commit/59decf8e9c3d86472073266ad8ee1cc699d94525.diff

[PATCH] D86671: [clang-tidy] Add new case type to check variables with Hungarian notation

2020-12-15 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. One last point, is there a way to validate that these options are only set where it makes sense. If someone tries to use say `MacroDefinitionHungarianPrefix` That could be warning worthy? Comment at:

[PATCH] D92039: [-Wcalled-once-parameter] Introduce 'called_once' attribute

2020-12-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/include/clang/Basic/AttrDocs.td:5095 +Clang implements a check for ``called_once`` parameters, +``-Wcalled-once-parameter``. It is on by default and finds the following +violations:

[PATCH] D92756: [clang-tidy] Support all YAML supported spellings for bools in CheckOptions.

2020-12-15 Thread Nathan James via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG68e642cad024: [clang-tidy] Support all YAML supported spellings for bools in CheckOptions. (authored by njames93). Repository: rG LLVM Github

[clang-tools-extra] 68e642c - [clang-tidy] Support all YAML supported spellings for bools in CheckOptions.

2020-12-15 Thread Nathan James via cfe-commits
Author: Nathan James Date: 2020-12-15T21:15:16Z New Revision: 68e642cad02468ce3efb18e7648cf82f2611e7a3 URL: https://github.com/llvm/llvm-project/commit/68e642cad02468ce3efb18e7648cf82f2611e7a3 DIFF: https://github.com/llvm/llvm-project/commit/68e642cad02468ce3efb18e7648cf82f2611e7a3.diff LOG:

[PATCH] D91819: [PowerPC] Enable paired vector type and intrinsics when MMA is disabled

2020-12-15 Thread Baptiste Saleil via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. bsaleil marked an inline comment as done. Closed by commit rG57d83c3a90c4: [PowerPC] Enable paired vector type and intrinsics when MMA is disabled (authored by

[clang] 57d83c3 - [PowerPC] Enable paired vector type and intrinsics when MMA is disabled

2020-12-15 Thread Baptiste Saleil via cfe-commits
Author: Baptiste Saleil Date: 2020-12-15T15:14:11-06:00 New Revision: 57d83c3a90c427ad0975803feb5b348d1ad34e29 URL: https://github.com/llvm/llvm-project/commit/57d83c3a90c427ad0975803feb5b348d1ad34e29 DIFF:

[PATCH] D92874: [clangd] Validate clang-tidy Checks in clangd config.

2020-12-15 Thread Nathan James via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGdfac97d55769: [clangd] Validate clang-tidy Checks in clangd config. (authored by njames93). Repository: rG LLVM Github Monorepo CHANGES SINCE

[clang-tools-extra] dfac97d - [clangd] Validate clang-tidy Checks in clangd config.

2020-12-15 Thread Nathan James via cfe-commits
Author: Nathan James Date: 2020-12-15T21:10:57Z New Revision: dfac97d557690dd4b1f2fab798680234b238d11f URL: https://github.com/llvm/llvm-project/commit/dfac97d557690dd4b1f2fab798680234b238d11f DIFF: https://github.com/llvm/llvm-project/commit/dfac97d557690dd4b1f2fab798680234b238d11f.diff LOG:

[PATCH] D90329: [PowerPC] Fix va_arg in C++, Objective-C on 32-bit ELF targets

2020-12-15 Thread Eli Friedman via Phabricator via cfe-commits
efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land. LGTM with one minor comment. Do you have commit access? If not, I can merge for you; please specify your preferred git "Author" line. Comment at:

[PATCH] D93102: [Clang][Sema] Detect section type conflicts between functions and variables

2020-12-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:3048 D->addAttr(NewAttr); +if (auto FD = dyn_cast(D)) + if (auto SA = dyn_cast(NewAttr)) Does this need to be limited to function declarations? It seems to me that

[clang] c103f9e - [RISCV] Use default member initializers for the feature flags in RISCVTargetInfo. NFC

2020-12-15 Thread Craig Topper via cfe-commits
Author: Craig Topper Date: 2020-12-15T12:37:47-08:00 New Revision: c103f9ef5a0e3180db8c9e94f9cd0b0e2a65375f URL: https://github.com/llvm/llvm-project/commit/c103f9ef5a0e3180db8c9e94f9cd0b0e2a65375f DIFF: https://github.com/llvm/llvm-project/commit/c103f9ef5a0e3180db8c9e94f9cd0b0e2a65375f.diff

[PATCH] D93333: tidy: supress warning for default member funcs

2020-12-15 Thread Chris Warner via Phabricator via cfe-commits
cwarner-8702 created this revision. cwarner-8702 added reviewers: clang-tools-extra, alexfh_, malcolm.parsons. cwarner-8702 added a project: clang-tools-extra. Herald added subscribers: kbarton, nemanjai. cwarner-8702 requested review of this revision. Herald added a project: clang. Herald added a

[PATCH] D93240: [clang-format] Add SpaceBeforeCaseColon option

2020-12-15 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks marked an inline comment as done. HazardyKnusperkeks added a comment. In D93240#2454268 , @MyDeveloperDay wrote: > I generally don't have the same aversion to new options than others have, but > can you point out a style guide that

[PATCH] D93314: [clangd] go-to-definition on auto unwraps array/pointer types

2020-12-15 Thread Quentin Chateau via Phabricator via cfe-commits
qchateau added a comment. Ah good catch, I agree this is the behavior we want. Concerning cases like `unique_ptr`, the only generic behavior I can think of would be to suggest multiple `LocatedSymbol` when `auto` is deduced to a template class: the template class itself, and all its template

[PATCH] D92733: Fix PR25627 - false positive diagnostics involving implicit-captures in dependent lambda expressions.

2020-12-15 Thread Wyatt Childers via Phabricator via cfe-commits
wchilders requested changes to this revision. wchilders added a comment. This revision now requires changes to proceed. I'm still "chewing on this", I'm not sure I fully understand the problem well enough to give great "big picture" feedback. In any case, I've left a few comments where I had a

[PATCH] D72241: [clang-tidy] new altera single work item barrier check

2020-12-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D72241#2449426 , @ffrankies wrote: > @aaron.ballman Thank you! If there are no further comments, could you please > commit this on my behalf? My GitHub username is ffrankies > . I'd be

[clang] 6c365cd - Consider reference, pointer, and pointer-to-member TemplateArguments to be different if they have different types.

2020-12-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-12-15T12:00:57-08:00 New Revision: 6c365cd31e323d2d075573edd927e4f7fb5ec01c URL: https://github.com/llvm/llvm-project/commit/6c365cd31e323d2d075573edd927e4f7fb5ec01c DIFF: https://github.com/llvm/llvm-project/commit/6c365cd31e323d2d075573edd927e4f7fb5ec01c.diff

[clang] 76edf98 - Set decl on DeclRefExpr directly during deserialization rather than

2020-12-15 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-12-15T12:00:57-08:00 New Revision: 76edf98b27c45f1aa26c1972927ce1638cda50fd URL: https://github.com/llvm/llvm-project/commit/76edf98b27c45f1aa26c1972927ce1638cda50fd DIFF: https://github.com/llvm/llvm-project/commit/76edf98b27c45f1aa26c1972927ce1638cda50fd.diff

[clang] ef40d52 - Adding a test case that I accidentally dropped from 27ea7d0a6e0dc51e0214707bcc265fa6f9dc9bc6

2020-12-15 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2020-12-15T14:56:44-05:00 New Revision: ef40d5233b8b6f82927128c5b255cdc3aed9021d URL: https://github.com/llvm/llvm-project/commit/ef40d5233b8b6f82927128c5b255cdc3aed9021d DIFF: https://github.com/llvm/llvm-project/commit/ef40d5233b8b6f82927128c5b255cdc3aed9021d.diff

[clang-tools-extra] 0545680 - Reland dcdef5b5b3df457566e7faf61e1e5789c42528d1

2020-12-15 Thread Kirill Bobyrev via cfe-commits
Author: Kirill Bobyrev Date: 2020-12-15T20:54:55+01:00 New Revision: 0545680cb870f1ca81198cd8324814543eb79e64 URL: https://github.com/llvm/llvm-project/commit/0545680cb870f1ca81198cd8324814543eb79e64 DIFF:

[PATCH] D92751: [clang][aarch64] Precondition isHomogeneousAggregate on isCXX14Aggregate

2020-12-15 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Thanks for the fix. At first, misunderstood, I expected that an aggregate containing non-aggregates should be returned indirectly, and that the fix would be in the C++ ABI codepath. However, I see that is not the case. An aggregate may contain non-aggregates, and MSVC will

[PATCH] D93298: [RISCV] add the MC layer support of Zfinx extension

2020-12-15 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: clang/lib/Basic/Targets/RISCV.h:40 : TargetInfo(Triple), HasM(false), HasA(false), HasF(false), HasD(false), -HasC(false), HasB(false), HasV(false), HasZfh(false) { LongDoubleWidth = 128; We

[PATCH] D92920: [clang-tidy] Add a diagnostic callback to parseConfiguration

2020-12-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tools-extra/clang-tidy/ClangTidyOptions.cpp:400 +DiagCallback Handler) { + llvm::yaml::Input Input(Config, nullptr, Handler ? diagHandlerImpl : nullptr, + );

[PATCH] D92756: [clang-tidy] Support all YAML supported spellings for bools in CheckOptions.

2020-12-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D92756/new/ https://reviews.llvm.org/D92756

[PATCH] D93324: Avoid isImplicit call on object which could be nullptr

2020-12-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. Good catch, LGTM! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93324/new/ https://reviews.llvm.org/D93324

[PATCH] D93325: Add srcloc output to clang-query

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire created this revision. steveire added a reviewer: aaron.ballman. steveire requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D93325 Files:

[PATCH] D93301: [flang][driver] Add support for `-c` and `-emit-obj`

2020-12-15 Thread Valentin Clement via Phabricator via cfe-commits
clementval added inline comments. Comment at: clang/include/clang/Driver/Options.td:4629 -} // let Flags = [CC1Option] +} // let Flags = [CC1Option, NoDriverOption] + Is it intended to modify the SYCL options? Comment at:

[PATCH] D93324: Avoid isImplicit call on object which could be nullptr

2020-12-15 Thread Stephen Kelly via Phabricator via cfe-commits
steveire created this revision. steveire added a reviewer: aaron.ballman. steveire requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. A callExpr whose argument is dependent has a null getCalleeDecl(). Repository: rG LLVM Github Monorepo

[PATCH] D92761: [clang][AArch64][SVE] Avoid going through memory for VLAT <-> VLST casts

2020-12-15 Thread Cullen Rhodes via Phabricator via cfe-commits
c-rhodes accepted this revision. c-rhodes added a comment. This revision is now accepted and ready to land. Left a couple of nits but mostly LGTM, cheers Comment at: clang/lib/CodeGen/CGExprScalar.cpp:2025-2051 // Perform VLAT <-> VLST bitcast through memory. if

[PATCH] D91819: [PowerPC] Enable paired vector type and intrinsics when MMA is disabled

2020-12-15 Thread Baptiste Saleil via Phabricator via cfe-commits
bsaleil added inline comments. Comment at: clang/lib/AST/ASTContext.cpp:1427 + if (Target.getTriple().isPPC64() && + Target.hasFeature("paired-vector-memops")) { +if (Target.hasFeature("mma")) { amyk wrote: > Is it better to do `hasFeature()` over

[PATCH] D92600: [ASTImporter] Add support for importing GenericSelectionExpr AST nodes.

2020-12-15 Thread Tom Roeder via Phabricator via cfe-commits
tmroeder updated this revision to Diff 311961. tmroeder added a comment. Explicitly instantiate the templates in the structural-equivalence test. This seems to work correctly on Windows, and it avoids the need for the extra hooks in the test framework. So, this diff removes those hooks as well

[PATCH] D92990: [clangd] Provide suggestions with invalid config keys

2020-12-15 Thread Nathan James via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGcfa1010c4242: [clangd] Provide suggestions with invalid config keys (authored by njames93). Repository: rG LLVM Github Monorepo CHANGES SINCE

[clang-tools-extra] cfa1010 - [clangd] Provide suggestions with invalid config keys

2020-12-15 Thread Nathan James via cfe-commits
Author: Nathan James Date: 2020-12-15T18:16:17Z New Revision: cfa1010c42429f689186125270dfbad7d6a1c01d URL: https://github.com/llvm/llvm-project/commit/cfa1010c42429f689186125270dfbad7d6a1c01d DIFF: https://github.com/llvm/llvm-project/commit/cfa1010c42429f689186125270dfbad7d6a1c01d.diff LOG:

  1   2   3   >