[PATCH] D39543: [analyzer] Document the issue hash debugging facility

2017-11-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. > these kinds of tasks should have the same level of attention as others Dunno really. I'm not sure anybody actually reads that doc instead of accidentally finding the checker code by debugging how

[PATCH] D39834: [clangd] -foptimization-record-file= should imply -fsave-optimization-record

2017-11-09 Thread Dmitry Venikov via Phabricator via cfe-commits
Quolyk updated this revision to Diff 122395. Quolyk retitled this revision from "[clangd][WIP] -foptimization-record-file= should imply -fsave-optimization-record" to "[clangd] -foptimization-record-file= should imply -fsave-optimization-record". Quolyk added a comment. Added 1 test, I guess

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D39862#921075, @george.karpenkov wrote: > Of course I'm new, but I disagree with this statement: in order to have a > robust API, the function should not crash, unless the caller violates an > explicit precondition. > `getSVal` is just a

[PATCH] D39114: [XRay][darwin] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris added a comment. Reverted in https://reviews.llvm.org/rL317877 -- I'm going to try again next week instead. Repository: rL LLVM https://reviews.llvm.org/D39114 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r317877 - Revert "[XRay][darwin] Initial XRay in Darwin Support"

2017-11-09 Thread Dean Michael Berris via cfe-commits
Author: dberris Date: Thu Nov 9 23:00:55 2017 New Revision: 317877 URL: http://llvm.org/viewvc/llvm-project?rev=317877=rev Log: Revert "[XRay][darwin] Initial XRay in Darwin Support" This reverts r317875. Modified: cfe/trunk/include/clang/Driver/XRayArgs.h

[PATCH] D39114: [XRay][darwin] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris added a comment. Landing now, will deal with the test and dynamic/ Comment at: compiler-rt/trunk/lib/xray/xray_trampoline_x86_64.S:75 - .globl __xray_FunctionEntry + .globl ASM_TSAN_SYMBOL(__xray_FunctionEntry) .align 16, 0x90

[PATCH] D39114: [XRay][darwin] Initial XRay in Darwin Support

2017-11-09 Thread Kuba (Brecka) Mracek via Phabricator via cfe-commits
kubamracek added inline comments. Comment at: compiler-rt/trunk/lib/xray/xray_trampoline_x86_64.S:75 - .globl __xray_FunctionEntry + .globl ASM_TSAN_SYMBOL(__xray_FunctionEntry) .align 16, 0x90 Since we want to use `ASM_TSAN_SYMBOL` outside

[PATCH] D39114: [XRay][darwin] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317875: [XRay][darwin] Initial XRay in Darwin Support (authored by dberris). Changed prior to commit: https://reviews.llvm.org/D39114?vs=122352=122391#toc Repository: rL LLVM

r317875 - [XRay][darwin] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via cfe-commits
Author: dberris Date: Thu Nov 9 21:50:13 2017 New Revision: 317875 URL: http://llvm.org/viewvc/llvm-project?rev=317875=rev Log: [XRay][darwin] Initial XRay in Darwin Support Summary: This change implements the changes required in both clang and compiler-rt to allow building XRay-instrumented

[PATCH] D39877: AMDGPU/NFC: Move getAMDGPUTargetFeatures to AMDGPU toolchain

2017-11-09 Thread Tony Tye via Phabricator via cfe-commits
t-tye accepted this revision. t-tye added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D39877 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r317873 - [X86] Reduce the number of FMA builtins needed by the frontend by adding negates to operands of the fmadd and fmaddsub builtins.

2017-11-09 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Nov 9 21:20:32 2017 New Revision: 317873 URL: http://llvm.org/viewvc/llvm-project?rev=317873=rev Log: [X86] Reduce the number of FMA builtins needed by the frontend by adding negates to operands of the fmadd and fmaddsub builtins. The backend should be able to combine

[PATCH] D39886: [ASTImporter] Fix wrong conflict detections for unnamed structures

2017-11-09 Thread Takafumi Kubota via Phabricator via cfe-commits
tk1012 created this revision. This patch fixes wrong conflict detections for unnamed structures. Current ASTImporter mistakenly identifies two different unnamed structs as the same one. This is because ASTImporter checks the name of each RecordDecl for the conflict identification and the both

[PATCH] D33722: [clang-tidy] Add checker for undelegated copy of base classes

2017-11-09 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/CopyConstructorInitCheck.cpp:69 + (Ctor->getAccess() == AS_private || Ctor->isDeleted())) { +NonCopyableBase = true; +break; xazax.hun wrote: > aaron.ballman wrote: > >

[PATCH] D39878: AMDGPU: Add -mxnack/-mno-xnack options that set +/-xnack feature

2017-11-09 Thread Tony Tye via Phabricator via cfe-commits
t-tye accepted this revision. t-tye added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D39878 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/AttrDocs.td:1502-1503 +evaluated at compile-time; + - A dependent integral value which depends on one or more template arguments, +be they type or non-type e.g. ``sizeof(T)`` within the scope of +

[PATCH] D39821: Add CLANG_DEFAULT_OBJCOPY to allow Clang to use llvm-objcopy for dwarf fission

2017-11-09 Thread Jake Ehrlich via Phabricator via cfe-commits
jakehehrlich updated this revision to Diff 122382. jakehehrlich added a comment. fixed typo Repository: rL LLVM https://reviews.llvm.org/D39821 Files: CMakeLists.txt include/clang/Config/config.h.cmake lib/Driver/ToolChains/CommonArgs.cpp Index: lib/Driver/ToolChains/CommonArgs.cpp

Re: [PATCH] Ensure std::getline always 0-terminates string.

2017-11-09 Thread Volodymyr Sapsai via cfe-commits
On Nov 9, 2017, at 12:13, Reimar Döffinger wrote: > > Hello! > > On Wed, Nov 08, 2017 at 12:36:00PM -0800, Volodymyr Sapsai wrote: >> Thanks for the patch, Reimar. Can you please add tests to ensure this >> functionality doesn’t regress? As null character is required

[PATCH] D39502: [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Steven Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317860: [Driver] Make clang/cc conforms to UNIX standard (authored by steven_wu). Repository: rL LLVM https://reviews.llvm.org/D39502 Files: cfe/trunk/lib/Driver/Compilation.cpp

r317860 - [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Steven Wu via cfe-commits
Author: steven_wu Date: Thu Nov 9 17:32:47 2017 New Revision: 317860 URL: http://llvm.org/viewvc/llvm-project?rev=317860=rev Log: [Driver] Make clang/cc conforms to UNIX standard Summary: This is basically reverting r261774 with a tweak for clang-cl. UNIX standard states: When c99 encounters a

[PATCH] D39502: [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. LGTM for CUDA-related functionality & tests. Thank you for the patch! https://reviews.llvm.org/D39502 ___ cfe-commits mailing list

[PATCH] D39502: [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Steven Wu via Phabricator via cfe-commits
steven_wu updated this revision to Diff 122376. steven_wu added a comment. Add more tests! The new tests can trigger two errors during the compilation but only one should be emitted. https://reviews.llvm.org/D39502 Files: lib/Driver/Compilation.cpp test/Driver/cuda-bail-out.cu

r317854 - [AST] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).

2017-11-09 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Thu Nov 9 16:59:22 2017 New Revision: 317854 URL: http://llvm.org/viewvc/llvm-project?rev=317854=rev Log: [AST] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). Modified: cfe/trunk/include/clang/AST/ASTUnresolvedSet.h

[PATCH] D39502: [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: test/Driver/cuda-bail-out.cu:47 +// CHECK-HOST-ERROR: Error during compilation for host +// CHECK-HOST-ERROR-NOT: Error during compilation for sm_35 steven_wu wrote: > tra wrote: > > steven_wu wrote: > > > tra wrote: > > >

[PATCH] D39882: [clangd] Filter completion results by fuzzy-matching identifiers.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. This allows us to limit the number of results we return and still allow them to be surfaced by refining a query (https://reviews.llvm.org/D39852). The initial algorithm is very conservative - it accepts a completion if the filter is any case-insensitive

[PATCH] D39502: [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Steven Wu via Phabricator via cfe-commits
steven_wu updated this revision to Diff 122372. steven_wu added a comment. I think I understand what you mean now. You want some cases when the compilation doesn't failed on the first source it process. I add a testcase which compiles for host + sm_35 + sim_60. I run the test 3 times and each

[PATCH] D39446: [PGO] Detect more structural changes with the stable hash

2017-11-09 Thread Vedant Kumar via Phabricator via cfe-commits
vsk updated this revision to Diff 122368. vsk edited the summary of this revision. vsk added a comment. - Consider logical nots and some binary comparison operators in the hash, per an offline conversation with @bogner https://reviews.llvm.org/D39446 Files: lib/CodeGen/CodeGenPGO.cpp

[PATCH] D39502: [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Steven Wu via Phabricator via cfe-commits
steven_wu added inline comments. Comment at: test/Driver/cuda-bail-out.cu:47 +// CHECK-HOST-ERROR: Error during compilation for host +// CHECK-HOST-ERROR-NOT: Error during compilation for sm_35 tra wrote: > steven_wu wrote: > > tra wrote: > > > steven_wu wrote:

[PATCH] D39611: [CodeGen] change const-ness of complex calls

2017-11-09 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D39611#918654, @hfinkel wrote: > In https://reviews.llvm.org/D39611#918275, @spatel wrote: > > > Patch updated: > > I don't know if we have agreement on the behavior that we want yet, > > > I just sent a note to the Austin group mailing list

[PATCH] D39502: [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: test/Driver/cuda-bail-out.cu:47 +// CHECK-HOST-ERROR: Error during compilation for host +// CHECK-HOST-ERROR-NOT: Error during compilation for sm_35 steven_wu wrote: > tra wrote: > > steven_wu wrote: > > > tra wrote: > > >

[PATCH] D39879: AMDGPU: Remove -mamdgpu-debugger-abi option

2017-11-09 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl created this revision. Herald added subscribers: tpr, dstuttard, yaxunl, nhaehnle, wdng. https://reviews.llvm.org/D39879 Files: include/clang/Driver/Options.td lib/Driver/ToolChains/AMDGPU.cpp test/Driver/amdgpu-features.c Index: test/Driver/amdgpu-features.c

[PATCH] D39878: AMDGPU: Add -mxnack/-mno-xnack options that set +/-xnack feature

2017-11-09 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl created this revision. Herald added subscribers: tpr, dstuttard, yaxunl, nhaehnle, wdng. https://reviews.llvm.org/D39878 Files: include/clang/Driver/Options.td test/Driver/amdgpu-features.c Index: test/Driver/amdgpu-features.c

[PATCH] D39877: AMDGPU/NFC: Move getAMDGPUTargetFeatures to AMDGPU toolchain

2017-11-09 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl created this revision. Herald added subscribers: tpr, dstuttard, yaxunl, nhaehnle, wdng. https://reviews.llvm.org/D39877 Files: lib/Driver/ToolChains/AMDGPU.cpp lib/Driver/ToolChains/AMDGPU.h lib/Driver/ToolChains/Clang.cpp Index: lib/Driver/ToolChains/Clang.cpp

[PATCH] D39114: [XRay][darwin] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris updated this revision to Diff 122352. dberris retitled this revision from "[XRay] Initial XRay in Darwin Support" to "[XRay][darwin] Initial XRay in Darwin Support". dberris edited the summary of this revision. dberris removed subscribers: echristo, pelikan. dberris added a comment. This

[PATCH] D39502: [Driver] Make clang/cc conforms to UNIX standard

2017-11-09 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added a comment. I abdicate as a reviewer in favor of tra -- if he's happy, I'm happy. https://reviews.llvm.org/D39502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r317849 - [analyzer] [NFC] Minor ExprEngineC refactoring

2017-11-09 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Nov 9 15:33:37 2017 New Revision: 317849 URL: http://llvm.org/viewvc/llvm-project?rev=317849=rev Log: [analyzer] [NFC] Minor ExprEngineC refactoring Move a repeated block of code into a function. Differential Revision: https://reviews.llvm.org/D39584

[PATCH] D39584: [analyzer] [NFC] another very minor ExprEngineC refactoring

2017-11-09 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317849: [analyzer] [NFC] Minor ExprEngineC refactoring (authored by george.karpenkov). Changed prior to commit: https://reviews.llvm.org/D39584?vs=121814=122345#toc Repository: rL LLVM

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris planned changes to this revision. dberris added a comment. In https://reviews.llvm.org/D39114#920591, @kubamracek wrote: > > When linking the final binary, the XRay runtime can't seem to find the > > `__{start,stop}_xray_{fn_idx,instr_map}` symbols. I've marked them weak, > > but they

[PATCH] D39852: [clangd] Support returning a limited number of completion results.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 122342. sammccall added a comment. Oops, sorting was backwards (test caught it, but I forgot to run it) https://reviews.llvm.org/D39852 Files: clangd/ClangdLSPServer.cpp clangd/ClangdServer.cpp clangd/ClangdServer.h clangd/ClangdUnit.cpp

[PATCH] D39584: [analyzer] [NFC] another very minor ExprEngineC refactoring

2017-11-09 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. Yes, looks great. Thanks! https://reviews.llvm.org/D39584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39050: Add index-while-building support to Clang

2017-11-09 Thread Nathan Hawes via Phabricator via cfe-commits
nathawes planned changes to this revision. nathawes added a comment. In https://reviews.llvm.org/D39050#920451, @ioeric wrote: > In https://reviews.llvm.org/D39050#900830, @arphaman wrote: > > > I think this patch should be split into a number of smaller patches to help > > the review process.

[PATCH] D39738: [clangd] Sort completion results.

2017-11-09 Thread Francisco Lopes da Silva via Phabricator via cfe-commits
francisco.lopes added a comment. OK. I do agree serialization, etc, is a stumbling block on delivering large results fast. I just wanted to warn on this because I've just seen ycmd devs went through this, where sorting was one of the bottlenecks, like, to `std::sort` 43k results instead of

[PATCH] D39738: [clangd] Sort completion results.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D39738#921103, @francisco.lopes wrote: > I'm still in the process of construction of a general jsonrpc/LSP client and > didn't start consuming clangd yet. If you concerns about clangd's responsiveness, I recommend testing using VSCode,

[PATCH] D39738: [clangd] Sort completion results.

2017-11-09 Thread Francisco Lopes da Silva via Phabricator via cfe-commits
francisco.lopes added a comment. I'm still in the process of construction a general jsonrpc client and didn't start consuming clangd yet. But, I do have previous experience with libclang, and I don't know whether clangd will be able to return completion results at global scope (not necessarily

[PATCH] D39859: [OpenMP] diagnose assign to firstprivate const

2017-11-09 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny updated this revision to Diff 122329. jdenny added a comment. Hi Alexey. Thanks for your comments. This update should address them all. https://reviews.llvm.org/D39859 Files: lib/Sema/SemaExpr.cpp test/OpenMP/parallel_firstprivate_messages.cpp Index:

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx updated this revision to Diff 122327. https://reviews.llvm.org/D39857 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/CodeGen/TargetInfo.cpp lib/Sema/SemaDeclAttr.cpp Index: lib/Sema/SemaDeclAttr.cpp

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317839: [analyzer] do not crash when trying to convert an APSInt to an unexpected type (authored by george.karpenkov). Changed prior to commit: https://reviews.llvm.org/D39862?vs=122306=122328#toc

r317839 - [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Nov 9 13:49:38 2017 New Revision: 317839 URL: http://llvm.org/viewvc/llvm-project?rev=317839=rev Log: [analyzer] do not crash when trying to convert an APSInt to an unexpected type This is the issue breaking the postgresql bot, purely by chance exposed through

[clang-tools-extra] r317838 - [clangd] Fix compilation database detection

2017-11-09 Thread Sam McCall via cfe-commits
Author: sammccall Date: Thu Nov 9 13:45:27 2017 New Revision: 317838 URL: http://llvm.org/viewvc/llvm-project?rev=317838=rev Log: [clangd] Fix compilation database detection Modified: clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp Modified:

[PATCH] D5767: Template Instantiation Observer + a few other templight-related changes

2017-11-09 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 added a comment. In https://reviews.llvm.org/D5767#920085, @rsmith wrote: > I'm not entirely sure what's happening with this and > https://reviews.llvm.org/D38818, but the direction looks good to me, and I > left a couple of comments on the other review thread. This was the original

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx marked an inline comment as done. AlexVlx added a comment. In https://reviews.llvm.org/D39857#920814, @kzhuravl wrote: > Hi Alex, can you rebase on top of trunk (I think you brought in some extra > changes from hcc branch) and upload a full diff? Hello Konstantine - apologies about

[PATCH] D38818: Template Instantiation Observer + a few other templight-related changes

2017-11-09 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 marked an inline comment as done. sabel83 added a comment. The last update of the patch also contains the changes to this pull request based on comments from https://reviews.llvm.org/D5767. https://reviews.llvm.org/D38818 ___ cfe-commits

[PATCH] D38818: Template Instantiation Observer + a few other templight-related changes

2017-11-09 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 marked an inline comment as done. sabel83 added a comment. I have moved the tests into their own directory in the last update. Comment at: tools/CMakeLists.txt:37 add_clang_subdirectory(libclang) +add_subdirectory(templight) rsmith wrote: > Did you

[PATCH] D38818: Template Instantiation Observer + a few other templight-related changes

2017-11-09 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 updated this revision to Diff 122324. https://reviews.llvm.org/D38818 Files: include/clang/Driver/CC1Options.td include/clang/Frontend/FrontendActions.h include/clang/Frontend/FrontendOptions.h include/clang/FrontendTool/Utils.h include/clang/Sema/Sema.h

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx updated this revision to Diff 122323. AlexVlx marked 7 inline comments as done. https://reviews.llvm.org/D39857 Files: include/clang/Basic/Attr.td lib/CodeGen/TargetInfo.cpp lib/Sema/SemaDeclAttr.cpp Index: lib/Sema/SemaDeclAttr.cpp

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D39836#920977, @arphaman wrote: > In https://reviews.llvm.org/D39836#920587, @sammccall wrote: > > > So I probably should have started from the other end, here :-) > > > > I'd really like to make the completion retrieval and ranking more

[PATCH] D39738: [clangd] Sort completion results.

2017-11-09 Thread Francisco Lopes da Silva via Phabricator via cfe-commits
francisco.lopes added a comment. Sorting got hardcoded? libclang has it optional. If hardcoded it becomes a performance problem, since some clients may wish to order it themselves with private heuristics. Repository: rL LLVM https://reviews.llvm.org/D39738

[PATCH] D39859: [OpenMP] diagnose assign to firstprivate const

2017-11-09 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/Sema/SemaExpr.cpp:14356 +if (S.IsOpenMPCapturedDecl(Var)) { + bool hasConst = DeclRefType.isConstQualified(); DeclRefType = DeclRefType.getUnqualifiedType(); `hasConst` must start from capital letter

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. I'm curious if the crash would turn into an assertion failure during `getRawSVal()` after https://reviews.llvm.org/D38801 is committed. The problem with this checker producing void symbols is known since https://reviews.llvm.org/D26837. If this problem is fixed on the

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. This seems reasonable to me. Please commit it. @NoQ can do a post-commit review and fix it up if he would rather address the issue differently. https://reviews.llvm.org/D39862

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Yan Zhang via Phabricator via cfe-commits
Wizard added inline comments. Comment at: clang-tidy/objc/PropertyDeclarationCheck.cpp:25 +/// we will do best effort to generate a fix, however, if the +/// case can not be solved with a simple fix (e.g. remove prefix or change first +/// character), we will leave the fix to

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Yan Zhang via Phabricator via cfe-commits
Wizard updated this revision to Diff 122319. Wizard marked 6 inline comments as done. Wizard added a comment. address comments https://reviews.llvm.org/D39829 Files: clang-tidy/objc/CMakeLists.txt clang-tidy/objc/ObjCTidyModule.cpp clang-tidy/objc/PropertyDeclarationCheck.cpp

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx updated this revision to Diff 122318. https://reviews.llvm.org/D39857 Files: include/clang/Basic/Attr.td lib/CodeGen/TargetInfo.cpp lib/Sema/SemaDeclAttr.cpp Index: lib/Sema/SemaDeclAttr.cpp === ---

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. In https://reviews.llvm.org/D39836#920587, @sammccall wrote: > So I probably should have started from the other end, here :-) > > I'd really like to make the completion retrieval and ranking more flexible. > In particular > > - incorporating results from other sources

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D39799#920780, @JVApen wrote: > How does this new file know if it should handle it's flags as it does in > clang.exe or clang-cl.exe? It doesn't set argv[0], so it's treated like `clang` by default. I believe the flag

r317832 - [index] tag declarations should use the decl role instead of ref

2017-11-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Nov 9 12:50:59 2017 New Revision: 317832 URL: http://llvm.org/viewvc/llvm-project?rev=317832=rev Log: [index] tag declarations should use the decl role instead of ref The 'decl' role is more canonical than the 'ref'. This helps us establish the 'specialization-of'

[PATCH] D39161: [bindings] remove unique_external test failure

2017-11-09 Thread Michał Górny via Phabricator via cfe-commits
mgorny added reviewers: jbcoe, aaron.ballman. mgorny added a comment. Let's try some more reviewers. https://reviews.llvm.org/D39161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov created this revision. Herald added subscribers: szepet, xazax.hun. This is the issue breaking the postgresql bot, purely by chance exposed through taint checker, somehow appearing after https://reviews.llvm.org/D38358 got committed. The backstory is that the taint checker

[PATCH] D39838: [clang] [python] [tests] Update priority values in code completion test

2017-11-09 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317828: [python] [tests] Update priority values in code completion test (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D39838?vs=17=122304#toc Repository: rL LLVM

r317828 - [python] [tests] Update priority values in code completion test

2017-11-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Nov 9 12:17:41 2017 New Revision: 317828 URL: http://llvm.org/viewvc/llvm-project?rev=317828=rev Log: [python] [tests] Update priority values in code completion test The priority for destructors and operators was reduced in r314019. Adjust the values used in the test

Re: [PATCH] Ensure std::getline always 0-terminates string.

2017-11-09 Thread Reimar Döffinger via cfe-commits
Hello! On Wed, Nov 08, 2017 at 12:36:00PM -0800, Volodymyr Sapsai wrote: > Thanks for the patch, Reimar. Can you please add tests to ensure this > functionality doesn’t regress? As null character is required by the standard > (27.7.2.3p21), a good starting point seems to be >

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:1329 StringArgument<"ISA", 1>]; let Documentation = [AMDGPUFlatWorkGroupSizeDocs]; let Subjects = SubjectList<[Function], ErrorDiag, "ExpectedKernelFunction">;

[PATCH] D39838: [clang] [python] [tests] Update priority values in code completion test

2017-11-09 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D39838#920399, @ilya-biryukov wrote: > LGTM. > > Can we run those tests as part of `check-all` cmake target or setup a > buildbot that runs those? Seems surprising it went unnoticed for so long. I was thinking of that but I think it'd be

[PATCH] D39859: [OpenMP] diagnose assign to firstprivate const

2017-11-09 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny created this revision. [OpenMP] diagnose assign to firstprivate const Clang does not diagnose assignments to const variables declared firstprivate. Furthermore, codegen is broken such that, at run time, such assignments simply have no effect. For example, the following prints 0 not 1:

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl added a subscriber: cfe-commits. kzhuravl added a reviewer: aaron.ballman. kzhuravl added a comment. Hi Alex, can you rebase on top of trunk (I think you brought in some extra changes from hcc branch) and upload a full diff? Comment at:

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread JVApen via Phabricator via cfe-commits
JVApen added a comment. How does this new file know if it should handle it's flags as it does in clang.exe or clang-cl.exe? Repository: rL LLVM https://reviews.llvm.org/D39799 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r317820 - [analyzer] assume bitwise arithmetic axioms

2017-11-09 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Nov 9 11:06:22 2017 New Revision: 317820 URL: http://llvm.org/viewvc/llvm-project?rev=317820=rev Log: [analyzer] assume bitwise arithmetic axioms Patches the solver to assume that bitwise OR of an unsigned value with a constant always produces a value

[PATCH] D39707: [analyzer] assume bitwise arithmetic axioms

2017-11-09 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317820: [analyzer] assume bitwise arithmetic axioms (authored by george.karpenkov). Changed prior to commit: https://reviews.llvm.org/D39707?vs=122170=122278#toc Repository: rL LLVM

[PATCH] D39707: [analyzer] assume bitwise arithmetic axioms

2017-11-09 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. This looks good to me. It is very clean! But please add a comment in the places where you are assuming a two's complement value representation for signed integers. https://reviews.llvm.org/D39707 ___ cfe-commits mailing

[PATCH] D39457: [OPENMP] Current status of OpenMP support.

2017-11-09 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev updated this revision to Diff 122273. ABataev added a comment. Fixed version of OpenMP standard https://reviews.llvm.org/D39457 Files: docs/OpenMPSupport.rst docs/index.rst Index: docs/index.rst === ---

[PATCH] D39852: [clangd] Support returning a limited number of completion results.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. All results are scored, we only process CodeCompletionStrings for the winners. We now return CompletionList rather than CompletionItem[] (both are valid). sortText is now based on CodeCompletionResult::orderedName (mostly the same). This is the first clangd-only

[PATCH] D39739: [HCC] Add flag to Import Weak Functions in Function Importer

2017-11-09 Thread Aaron En Ye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 122271. ashi1 added subscribers: scchan, yaxunl, ashi1. ashi1 added a comment. Herald added a subscriber: eraman. I've added the lit tests for this change, and also showing full context. My lit test import_weak_type.ll follows similar format to

[PATCH] D39706: [refactor][extract] Initial implementation of variable captures

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 122270. arphaman marked 5 inline comments as done. arphaman added a comment. Address review comments Repository: rL LLVM https://reviews.llvm.org/D39706 Files: lib/Tooling/Refactoring/CMakeLists.txt

[PATCH] D39706: [refactor][extract] Initial implementation of variable captures

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added inline comments. Comment at: lib/Tooling/Refactoring/Extract/CaptureVariables.cpp:36 + return true; +// FIXME: Capture 'self'. +if (!VD->isLocalVarDeclOrParm()) ioeric wrote: > and `this`? This is a different kind of expression that

[PATCH] D39457: [OPENMP] Current status of OpenMP support.

2017-11-09 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev updated this revision to Diff 122268. ABataev added a comment. Update status. https://reviews.llvm.org/D39457 Files: docs/OpenMPSupport.rst docs/index.rst Index: docs/index.rst === --- docs/index.rst +++

[PATCH] D39751: [libc++] Add _LIBCPP_INLINE_VISIBILITY to __compressed_pair_elem members

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317816: Add _LIBCPP_INLINE_VISIBILITY to __compressed_pair_elem members (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D39751?vs=121939=122261#toc Repository: rL LLVM

[libcxx] r317816 - Add _LIBCPP_INLINE_VISIBILITY to __compressed_pair_elem members

2017-11-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Nov 9 09:54:49 2017 New Revision: 317816 URL: http://llvm.org/viewvc/llvm-project?rev=317816=rev Log: Add _LIBCPP_INLINE_VISIBILITY to __compressed_pair_elem members The commit r300140 changed the implementation of compressed_pair, but didn't add

r317813 - [OPENMP] Codegen for `#pragma omp target parallel for simd`.

2017-11-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Nov 9 09:32:15 2017 New Revision: 317813 URL: http://llvm.org/viewvc/llvm-project?rev=317813=rev Log: [OPENMP] Codegen for `#pragma omp target parallel for simd`. Added codegen for `#pragma omp target parallel for simd` and clauses. Added:

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Kuba (Brecka) Mracek via Phabricator via cfe-commits
kubamracek added a comment. > When linking the final binary, the XRay runtime can't seem to find the > `__{start,stop}_xray_{fn_idx,instr_map}` symbols. I've marked them weak, but > they seem to either not be resolved when statically linking the binary. The > dynamic lib version of the XRay

[PATCH] D39800: [analyzer] pr34404: Fix a crash on pointers to members in nested anonymous structures.

2017-11-09 Thread Kirill Romanenkov via Phabricator via cfe-commits
kromanenkov added a comment. @NoQ Do we need to change a `DeclaratorDecl` field in PointerToMember SVal to something more common, like `ValueDecl`, to support `IndirectFieldDecl` as well? https://reviews.llvm.org/D39800 ___ cfe-commits mailing

r317811 - [OPENMP] Treat '#pragma omp target parallel for simd' as simd directive.

2017-11-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Nov 9 09:01:35 2017 New Revision: 317811 URL: http://llvm.org/viewvc/llvm-project?rev=317811=rev Log: [OPENMP] Treat '#pragma omp target parallel for simd' as simd directive. `#pragma omp target parallel for simd` mistakenly was not treated as a simd directive, fixed

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Kuba (Brecka) Mracek via Phabricator via cfe-commits
kubamracek added a comment. Thanks for working on this! Can we split the patch and land parts that are LGTM? It's getting a bit crowded here. I think the ASM changes should be a separate patch, and the test changes as well, probably. https://reviews.llvm.org/D39114

[PATCH] D38639: [clangd] #include statements support for Open definition

2017-11-09 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. In https://reviews.llvm.org/D38639#920487, @ilya-biryukov wrote: > I think we should never iterate through `SourceManager`, as it's much easier > to get wrong than using the callbacks. I agree that all that fiddling with > callbacks is unfortunate, but it's well

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. So I probably should have started from the other end, here :-) I'd really like to make the completion retrieval and ranking more flexible. In particular - incorporating results from other sources (indexes: both in-memory and external services). - combining more

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added inline comments. Comment at: clang-tidy/objc/PropertyDeclarationCheck.cpp:25 +/// we will do best effort to generate a fix, however, if the +/// case can not be solved with a simple fix (e.g. remove prefix or change first +/// character), we will leave the fix

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added inline comments. Comment at: docs/clang-tidy/checks/objc-property-declaration.rst:7 +Finds property declarations in Objective-C files that do not follow the pattern +of property names in Google's Objective-C Style Guide. The property name should +be in the

[PATCH] D39842: Allow to store precompiled preambles in memory.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. I'm really happy you've made this work! I don't understand it enough to do a meaningful review (keen to learn if you have time for a walkthrough when back in the office). https://reviews.llvm.org/D39842 ___ cfe-commits

[PATCH] D39843: [clangd] Use in-memory preambles in clangd.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Heh, I was just going to ask :-) As a very first step, can we make this configurable but off-by-default? That will address the pressing diskless-servers need. In a typical workstation scenario, disk is plentiful (if slow) and RAM is scarce - very likely we're

r317800 - [VirtualFileSystem] InMemoryFileSystem::addFile(): Type and Perms

2017-11-09 Thread Ben Hamilton via cfe-commits
Author: benhamilton Date: Thu Nov 9 08:01:16 2017 New Revision: 317800 URL: http://llvm.org/viewvc/llvm-project?rev=317800=rev Log: [VirtualFileSystem] InMemoryFileSystem::addFile(): Type and Perms Summary: This implements a FIXME in InMemoryFileSystem::addFile(), allowing clients to specify

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. I would prefer to make this behaviour configurable. https://reviews.llvm.org/D39836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r317799 - [clang-format] Keep Sphinx happy after r317794

2017-11-09 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Thu Nov 9 07:54:59 2017 New Revision: 317799 URL: http://llvm.org/viewvc/llvm-project?rev=317799=rev Log: [clang-format] Keep Sphinx happy after r317794 Modified: cfe/trunk/docs/ClangFormatStyleOptions.rst cfe/trunk/include/clang/Format/Format.h Modified:

  1   2   >