[PATCH] D53817: [clang-tidy] cppcoreguidelines-macro-usage: print macro names

2018-10-29 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D53817#1278970, @aaron.ballman wrote: > In https://reviews.llvm.org/D53817#1278933, @lebedev.ri wrote: > > > In https://reviews.llvm.org/D53817#1278916, @JonasToth wrote: > > > > > How does this patch change the behaviour for macros without

[PATCH] D52742: [analyzer][PlistMacroExpansion] Part 1.: New expand-macros flag

2018-10-29 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 171533. https://reviews.llvm.org/D52742 Files: include/clang/StaticAnalyzer/Core/AnalyzerOptions.h lib/StaticAnalyzer/Core/AnalyzerOptions.cpp lib/StaticAnalyzer/Core/BugReporter.cpp lib/StaticAnalyzer/Core/PlistDiagnostics.cpp test/Analysis/Input

[PATCH] D52742: [analyzer][PlistMacroExpansion] Part 1.: New expand-macros flag

2018-10-29 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 171532. Szelethus added a comment. This revision is now accepted and ready to land. Changes according to my last comment. https://reviews.llvm.org/D52742 Files: include/clang/StaticAnalyzer/Core/AnalyzerOptions.h lib/StaticAnalyzer/Core/AnalyzerOption

[PATCH] D53814: Allow the analyzer to output to a SARIF file

2018-10-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: Analysis/diagnostics/sarif-check.py:22 +passes = 0 +with open(testfile) as testfh: +lineno = 0 george.karpenkov wrote: > Wow, this is super neat! > Since you are quite active in LLVM community, would you think

[PATCH] D53651: [clangd] Use thread pool for background indexing.

2018-10-29 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 171527. kadircet added a comment. - Use notify_all. - Use priorities. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53651 Files: clangd/Threading.cpp clangd/Threading.h clangd/index/Background.cpp clangd/index/Background.h Index:

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-29 Thread Alexander Zaitsev via Phabricator via cfe-commits
ZaMaZaN4iK added inline comments. Comment at: lib/Sema/SemaCodeComplete.cpp:5135 + }; + auto AddDefaultCtorInit = [&](const char *TypedName, +const char *TypeName, Is it good idea to capture ALL by reference? Probably will be bet

[PATCH] D53817: [clang-tidy] cppcoreguidelines-macro-usage: print macro names

2018-10-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D53817#1278933, @lebedev.ri wrote: > In https://reviews.llvm.org/D53817#1278916, @JonasToth wrote: > > > How does this patch change the behaviour for macros without location? > > > It doesn't. > > > They will be diagnosed at the beginning

[PATCH] D53817: [clang-tidy] cppcoreguidelines-macro-usage: print macro names

2018-10-29 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. >> They will be diagnosed at the beginning of the TU? >> It is probably better to ignore these kind of macros, as there is no way >> around them (compile time configuration can only be done with macros?!) and >> therefore warnings for theses macros are false positives

[PATCH] D53818: [ASTImporter] Changed use of Import to Import_New in ASTImporter.

2018-10-29 Thread Balázs Kéri via Phabricator via cfe-commits
balazske updated this revision to Diff 171519. balazske added a comment. Reformatted code. Repository: rC Clang https://reviews.llvm.org/D53818 Files: include/clang/AST/ASTImporter.h lib/AST/ASTImporter.cpp Index: lib/AST/ASTImporter.cpp =

[PATCH] D53814: Allow the analyzer to output to a SARIF file

2018-10-29 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov requested changes to this revision. george.karpenkov added a comment. This revision now requires changes to proceed. Minor style notes + context missing. I think using `diff` would be better than a custom python tool. https://reviews.llvm.org/D53814 _

[PATCH] D53814: Allow the analyzer to output to a SARIF file

2018-10-29 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. Patch context is missing. Comment at: Analysis/diagnostics/sarif-check.py:22 +passes = 0 +with open(testfile) as testfh: +lineno = 0 Wow, this is super neat! Since you are quite active in LLVM community, would you think it'

[PATCH] D53817: [clang-tidy] cppcoreguidelines-macro-usage: print macro names

2018-10-29 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D53817#1278916, @JonasToth wrote: > How does this patch change the behaviour for macros without location? It doesn't. > They will be diagnosed at the beginning of the TU? > It is probably better to ignore these kind of macros, as there

[PATCH] D53714: [AST] Only store the needed data in SwitchStmt.

2018-10-29 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345510: [AST] Only store the needed data in SwitchStmt (authored by brunoricci, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D53714?vs=17133

r345510 - [AST] Only store the needed data in SwitchStmt

2018-10-29 Thread Bruno Ricci via cfe-commits
Author: brunoricci Date: Mon Oct 29 09:12:37 2018 New Revision: 345510 URL: http://llvm.org/viewvc/llvm-project?rev=345510&view=rev Log: [AST] Only store the needed data in SwitchStmt Don't store the data for the init statement and condition variable if not needed. This cuts the size of SwitchStm

[PATCH] D53814: Allow the analyzer to output to a SARIF file

2018-10-29 Thread Alexander Zaitsev via Phabricator via cfe-commits
ZaMaZaN4iK added inline comments. Comment at: StaticAnalyzer/Core/CMakeLists.txt:43 PlistDiagnostics.cpp + SarifDiagnostics.cpp ProgramState.cpp Sort alphabetically Comment at: StaticAnalyzer/Core/SarifDiagnostics.cpp:88 +

[PATCH] D53818: [ASTImporter] Changed use of Import to Import_New in ASTImporter.

2018-10-29 Thread Balázs Kéri via Phabricator via cfe-commits
balazske added a comment. The Import functions are replaced by Import_New and error handling is added. This is done in the implementation of the Import_New functions itself, and in importInto. (Code of old Import functions is moved to the Import_New and updated to use Import_New.) Some other fu

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-29 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 171516. kadircet marked 5 inline comments as done. kadircet added a comment. - Address comments & offline discussions. Repository: rC Clang https://reviews.llvm.org/D53654 Files: lib/Sema/SemaCodeComplete.cpp test/CodeCompletion/ctor-initializer.cpp

[PATCH] D53817: [clang-tidy] cppcoreguidelines-macro-usage: print macro names

2018-10-29 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. How does this patch change the behaviour for macros without location? They will be diagnosed at the beginning of the TU? It is probably better to ignore these kind of macros, as there is no way around them (compile time configuration can only be done with macros?!) an

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-29 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345509: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel… (authored by gbercea, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://rev

r345509 - [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-29 Thread Gheorghe-Teodor Bercea via cfe-commits
Author: gbercea Date: Mon Oct 29 08:45:47 2018 New Revision: 345509 URL: http://llvm.org/viewvc/llvm-project?rev=345509&view=rev Log: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for Summary: This patch adds a new code generation path for bound sharing directive

[PATCH] D53810: [analyzer][NFC] Refactor PlistDiagnostics to use a class instead of passing 9 parameters around

2018-10-29 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp:82 -static void EmitRanges(raw_ostream &o, - const ArrayRef Ranges, - const FIDMap& FM, - const Preprocessor &PP, -

[PATCH] D53818: [ASTImporter] Changed use of Import to Import_New in ASTImporter.

2018-10-29 Thread Balázs Kéri via Phabricator via cfe-commits
balazske created this revision. Herald added subscribers: cfe-commits, Szelethus, martong, dkrupp. Herald added a reviewer: a.sidorin. Repository: rC Clang https://reviews.llvm.org/D53818 Files: include/clang/AST/ASTImporter.h lib/AST/ASTImporter.cpp Index: lib/AST/ASTImporter.cpp ===

[PATCH] D53443: [OpenMP][NVPTX] Enable default scheduling for parallel for in non-SPMD cases.

2018-10-29 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345507: [OpenMP][NVPTX] Enable default scheduling for parallel for in non-SPMD cases. (authored by gbercea, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.

r345507 - [OpenMP][NVPTX] Enable default scheduling for parallel for in non-SPMD cases.

2018-10-29 Thread Gheorghe-Teodor Bercea via cfe-commits
Author: gbercea Date: Mon Oct 29 08:23:23 2018 New Revision: 345507 URL: http://llvm.org/viewvc/llvm-project?rev=345507&view=rev Log: [OpenMP][NVPTX] Enable default scheduling for parallel for in non-SPMD cases. Summary: This patch enables the choosing of the default schedule for parallel for lo

[PATCH] D53810: [analyzer][NFC] Refactor PlistDiagnostics to use a class instead of passing 9 parameters around

2018-10-29 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp:82 -static void EmitRanges(raw_ostream &o, - const ArrayRef Ranges, - const FIDMap& FM, - const Preprocessor &PP, -

[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-10-29 Thread Alexander Zaitsev via Phabricator via cfe-commits
ZaMaZaN4iK added inline comments. Comment at: lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp:36 + const ProgramStateRef PS; + SValBuilder &SVB; + Szelethus wrote: > You can acquire `SValBuilder` from `ProgramState`: > `PS->getStateManager()->getSvalB

[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-10-29 Thread Alexander Zaitsev via Phabricator via cfe-commits
ZaMaZaN4iK updated this revision to Diff 171506. ZaMaZaN4iK marked 2 inline comments as done. ZaMaZaN4iK added a comment. Fix typedef -> using https://reviews.llvm.org/D33672 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt lib/StaticAnal

[PATCH] D53807: Create a diagnostic group for warn_call_to_pure_virtual_member_function_from_ctor_dtor, so it can be turned into an error using Werror

2018-10-29 Thread Davide Italiano via Phabricator via cfe-commits
davide added a comment. While it's true that I implemented this warning, I don't feel qualified enough to approve the introduction of a new flag to clang. Probably @rsmith should sign this off. Repository: rC Clang https://reviews.llvm.org/D53807 _

[PATCH] D53807: Create a diagnostic group for warn_call_to_pure_virtual_member_function_from_ctor_dtor, so it can be turned into an error using Werror

2018-10-29 Thread Arnaud Bienner via Phabricator via cfe-commits
ArnaudBienner added a reviewer: davide. ArnaudBienner added a comment. Hi Davide, I see you the last person who updated the test file related to this feature. Would you feel comfortable reviewing my patch? This is my first clang patch, so I apologize in advance if I missed obvious things :) R

[PATCH] D53810: [analyzer][NFC] Refactor PlistDiagnostics to use a class instead of passing 9 parameters around

2018-10-29 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 171505. https://reviews.llvm.org/D53810 Files: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp Index: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp === --- lib/StaticAnalyzer/Core/PlistDiagnosti

[PATCH] D53610: [AST] Check that GNU range case statements are correctly imported.

2018-10-29 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345506: [AST] Check that GNU range case statements are correctly imported. (authored by brunoricci, committed by ). Repository: rC Clang https://reviews.llvm.org/D53610 Files: test/Import/switch-stm

r345506 - [AST] Check that GNU range case statements are correctly imported.

2018-10-29 Thread Bruno Ricci via cfe-commits
Author: brunoricci Date: Mon Oct 29 08:04:19 2018 New Revision: 345506 URL: http://llvm.org/viewvc/llvm-project?rev=345506&view=rev Log: [AST] Check that GNU range case statements are correctly imported. The test for case statements did not cover GNU range case statements. Differential Revision:

[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-10-29 Thread Alexander Zaitsev via Phabricator via cfe-commits
ZaMaZaN4iK updated this revision to Diff 171503. ZaMaZaN4iK added a comment. Add new test for enum bit field https://reviews.llvm.org/D33672 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeCh

[PATCH] D53807: Create a diagnostic group for warn_call_to_pure_virtual_member_function_from_ctor_dtor, so it can be turned into an error using Werror

2018-10-29 Thread Arnaud Bienner via Phabricator via cfe-commits
ArnaudBienner updated this revision to Diff 171502. ArnaudBienner added a comment. Update tests Repository: rC Clang https://reviews.llvm.org/D53807 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticSemaKinds.td test/Misc/warning-flags.c test/SemaCXX/warn-p

r345505 - [OPENMP] Do not capture private loop counters.

2018-10-29 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 29 08:01:58 2018 New Revision: 345505 URL: http://llvm.org/viewvc/llvm-project?rev=345505&view=rev Log: [OPENMP] Do not capture private loop counters. If the loop counter is not declared in the context of the loop and it is private, such loop counters should not be c

[PATCH] D53443: [OpenMP][NVPTX] Enable default scheduling for parallel for in non-SPMD cases.

2018-10-29 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rC Clang https://reviews.llvm.org/D53443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D53443: [OpenMP][NVPTX] Enable default scheduling for parallel for in non-SPMD cases.

2018-10-29 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea added a comment. ping Repository: rC Clang https://reviews.llvm.org/D53443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-29 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171499. gtbercea added a comment. Fix comment. Repository: rC Clang https://reviews.llvm.org/D53448 Files: include/clang/AST/StmtOpenMP.h lib/AST/StmtOpenMP.cpp lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGOpenMP

[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl

2018-10-29 Thread Hans Wennborg via Phabricator via cfe-commits
hans added inline comments. Comment at: clang/lib/Sema/SemaDeclCXX.cpp:5719 + TSK != TSK_ExplicitInstantiationDeclaration && + TSK != TSK_ExplicitInstantiationDefinition) { +if (ClassExported) { takuto.ikuta wrote: > takuto.ikuta wrote:

[PATCH] D53770: Support g++ headers in include/g++

2018-10-29 Thread David Greene via Phabricator via cfe-commits
greened added inline comments. Comment at: lib/Driver/ToolChains/Linux.cpp:927-928 LibDir.str() + "/../include/c++", + // Some gcc installations put headers under "g++" without a + // version suffix. + LibDir.str() + "/../include/g++", rsmit

[PATCH] D53817: [clang-tidy] cppcoreguidelines-macro-usage: print macro names

2018-10-29 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri created this revision. lebedev.ri added reviewers: JonasToth, aaron.ballman, hokein, xazax.hun, alexfh. lebedev.ri added a project: clang-tools-extra. Herald added subscribers: rnkovacs, kbarton, nemanjai. The macro may not have location (or more generally, the location may not exist),

[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl

2018-10-29 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. I've been thinking more about your example with static locals in lambda and how this works with regular dllexport. It got me thinking more about the problem of exposing inline functions from a library. For example: `lib.h`: #ifndef LIB_H #define LIB_H int foo();

[PATCH] D53781: [ASTMatchers] add a matcher for static locals

2018-10-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Committed in r345502, thank you for the patch! Repository: rC Clang https://reviews.llvm.org/D53781 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

r345502 - Add the isStaticLocal() AST matcher for matching on local static variables.

2018-10-29 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Mon Oct 29 06:47:56 2018 New Revision: 345502 URL: http://llvm.org/viewvc/llvm-project?rev=345502&view=rev Log: Add the isStaticLocal() AST matcher for matching on local static variables. Patch by Joe Ranieri. Modified: cfe/trunk/docs/LibASTMatchersReference.html

[PATCH] D53781: [ASTMatchers] add a matcher for static locals

2018-10-29 Thread Joe Ranieri via Phabricator via cfe-commits
jranieri-grammatech added a comment. I do. Repository: rC Clang https://reviews.llvm.org/D53781 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53651: [clangd] Use thread pool for background indexing.

2018-10-29 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Update from the offline meeting: decided to start with `llvm::ThreadPool` for background tasks and lower thread priorities for background tasks. Comment at: clangd/index/Background.cpp:89 } - QueueCV.notify_all(); + QueueCV.notify_one(); }

[PATCH] D53814: Allow the analyzer to output to a SARIF file

2018-10-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: dcoughlin, zaks.anna. Herald added subscribers: dkrupp, donat.nagy, Szelethus, a.sidorin, mgorny. Herald added a reviewer: george.karpenkov. SARIF (https://github.com/oasis-tcs/sarif-spec) is a new draft standard interchange form

[PATCH] D52610: [Esan] Port cache frag to FreeBSD

2018-10-29 Thread David CARLIER via Phabricator via cfe-commits
devnexen added a comment. ping working-set on FreeBSD does not seem doable. Repository: rC Clang https://reviews.llvm.org/D52610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41648: [clang-tidy] implement cppcoreguidelines macro rules

2018-10-29 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: clang-tidy/cppcoreguidelines/MacroUsageCheck.cpp:67 + + diag(MD->getLocation(), DiagnosticMessage); +} And once again, i'm going to bitch about useless diagnostic messages: ``` [1/357] Building CXX object src/CMakeF

[PATCH] D53514: os_log: make buffer size an integer constant expression.

2018-10-29 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover added a comment. Ping. Repository: rC Clang https://reviews.llvm.org/D53514 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52857: [clang-query] Add non-exclusive output API

2018-10-29 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 with some minor fixes. At some point (not necessarily as part of this patch), you should also update `docs\ReleaseNotes.rst` to broadly list the new features you've been add

[PATCH] D53812: [Analyzer] Iterator Checker - Forbid increments past the begin() and decrements past the end() of containers

2018-10-29 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware created this revision. baloghadamsoftware added a reviewer: NoQ. baloghadamsoftware added a project: clang. Herald added subscribers: donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, whisperity. Herald added a reviewer: george.karpenkov. Previously, the iter

[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-10-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp:19 +// of casting an integer value that is out of range +//===--===// + ZaMaZaN4iK wro

[PATCH] D53701: [Analyzer] Record and process comparison of symbols instead of iterator positions in interator checkers

2018-10-29 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Makes sense! Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:39 //currently treated as an lvalue. // * type-IIc, type-IIIc: compound values of iterator-typed objects, when the //iterator o

r345497 - [OpenCL] Fix serialization of OpenCLExtensionDecls

2018-10-29 Thread Andrew Savonichev via cfe-commits
Author: asavonic Date: Mon Oct 29 04:14:01 2018 New Revision: 345497 URL: http://llvm.org/viewvc/llvm-project?rev=345497&view=rev Log: [OpenCL] Fix serialization of OpenCLExtensionDecls Summary: I recently discovered that adding the following code into `opencl-c.h` causes failure of `test/Headers

[PATCH] D53200: [OpenCL] Fix serialization of OpenCLExtensionDecls

2018-10-29 Thread Andrew Savonichev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345497: [OpenCL] Fix serialization of OpenCLExtensionDecls (authored by asavonic, committed by ). Repository: rC Clang https://reviews.llvm.org/D53200 Files: lib/Serialization/ASTWriter.cpp test/S

[PATCH] D53810: [analyzer][NFC] Refactor PlistDiagnostics to use a class instead of passing 9 parameters around

2018-10-29 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus created this revision. Szelethus added reviewers: xazax.hun, rnkovacs, george.karpenkov, NoQ. Herald added subscribers: cfe-commits, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, szepet, whisperity. This has been a long time coming. Note the usage of `AnalyzerOptions`: I'll need it f

[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

2018-10-29 Thread George Rimar via Phabricator via cfe-commits
grimar updated this revision to Diff 171480. grimar added a comment. Ping. - Rebased. https://reviews.llvm.org/D52296 Files: include/clang/Driver/CC1Options.td include/clang/Driver/Options.td include/clang/Frontend/CodeGenOptions.h lib/CodeGen/BackendUtil.cpp lib/Driver/ToolChains/Cl

[PATCH] D53693: [ASTImporter] Typedef import brings in the complete type

2018-10-29 Thread Gabor Marton via Phabricator via cfe-commits
martong updated this revision to Diff 171478. martong marked 2 inline comments as done. martong added a comment. - Move FromUT upper, add break Repository: rC Clang https://reviews.llvm.org/D53693 Files: lib/AST/ASTImporter.cpp unittests/AST/ASTImporterTest.cpp Index: unittests/AST/AST

[PATCH] D53808: [clangd] Don't collect refs from non-canonical headers.

2018-10-29 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Please add a test with `#pragma once`, which should still be counted as a header guard. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53808 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

[PATCH] D53809: Fix invalid address space generation for clk_event_t

2018-10-29 Thread Viktoria Maximova via Phabricator via cfe-commits
vmaksimo created this revision. vmaksimo added reviewers: Anastasia, yaxunl, AlexeySotkin. Herald added a subscriber: cfe-commits. Addrspace(32) was generated when putting 0 in clk_event_t * event_ret parameter for enqueue_kernel function. Repository: rC Clang https://reviews.llvm.org/D53809

[PATCH] D53808: [clangd] Don't collect refs from non-canonical headers.

2018-10-29 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. With this patch, we only collect refs for canonical headers (headers with header guards). As non-canonical headers are usually generated, and no

[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-10-29 Thread Alexander Zaitsev via Phabricator via cfe-commits
ZaMaZaN4iK marked 3 inline comments as done. ZaMaZaN4iK added inline comments. Comment at: lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChecker.cpp:19 +// of casting an integer value that is out of range +//===---

[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-10-29 Thread Alexander Zaitsev via Phabricator via cfe-commits
ZaMaZaN4iK updated this revision to Diff 171472. ZaMaZaN4iK added a comment. Add the reference to CERT page https://reviews.llvm.org/D33672 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt lib/StaticAnalyzer/Checkers/EnumCastOutOfRangeChe

[PATCH] D53704: [ASTImporter] Import overrides before importing the rest of the chain

2018-10-29 Thread Gabor Marton via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345496: [ASTImporter] Import overrides before importing the rest of the chain (authored by martong, committed by ). Changed prior to commit: https://reviews.llvm.org/D53704?vs=171097&id=171471#toc Repo

r345496 - [ASTImporter] Import overrides before importing the rest of the chain

2018-10-29 Thread Gabor Marton via cfe-commits
Author: martong Date: Mon Oct 29 03:18:28 2018 New Revision: 345496 URL: http://llvm.org/viewvc/llvm-project?rev=345496&view=rev Log: [ASTImporter] Import overrides before importing the rest of the chain Summary: During method import we check for structural eq of two methods. In the structural eq

[PATCH] D53807: Create a diagnostic group for warn_call_to_pure_virtual_member_function_from_ctor_dtor, so it can be turned into an error using Werror

2018-10-29 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru added a comment. Please add some tests Repository: rC Clang https://reviews.llvm.org/D53807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53807: Create a diagnostic group for warn_call_to_pure_virtual_member_function_from_ctor_dtor, so it can be turned into an error using Werror

2018-10-29 Thread Arnaud Bienner via Phabricator via cfe-commits
ArnaudBienner created this revision. Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D53807 Files: include/clang/Basic/DiagnosticGroups.td include/clang/Basic/DiagnosticSemaKinds.td Index: include/clang/Basic/DiagnosticSemaKinds.td ==

[PATCH] D53457: clang-cl: Add "/clang:" pass-through arg support.

2018-10-29 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. In https://reviews.llvm.org/D53457#1277950, @neerajksingh wrote: > In https://reviews.llvm.org/D53457#1277315, @hans wrote: > > > One note about flag ordering: the /clang: flags are concatenated to the > > end of > > the argument list, so in cases where the last flag wi

[PATCH] D53771: [clang-tidy] Avoid C arrays check

2018-10-29 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp:84 "cppcoreguidelines-c-copy-assignment-signature"); +CheckFactories.registerCheck( +"cppcoreguidelines-avoid-c-arrays"); please conserv

[PATCH] D53433: [clangd] auto-index stores symbols per-file instead of per-TU.

2018-10-29 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 171467. ioeric added a comment. - minor cleanup and a friendly ping. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53433 Files: clangd/index/Background.cpp clangd/index/Background.h clangd/index/FileIndex.cpp clangd/index/FileIndex.

[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl

2018-10-29 Thread Takuto Ikuta via Phabricator via cfe-commits
takuto.ikuta updated this revision to Diff 171466. takuto.ikuta marked an inline comment as done. takuto.ikuta added a comment. Added explanation comment for added attributes and rebased https://reviews.llvm.org/D51340 Files: clang/include/clang/Basic/Attr.td clang/include/clang/Basic/LangO

[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl

2018-10-29 Thread Takuto Ikuta via Phabricator via cfe-commits
takuto.ikuta added inline comments. Comment at: clang/lib/AST/ASTContext.cpp:9552 +// overwrite linkage of explicit template instantiation +// definition/declaration. +return GVA_DiscardableODR; hans wrote: > Can you give an example for why this is ne

[PATCH] D53654: [clang] Improve ctor initializer completions.

2018-10-29 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: include/clang/Sema/CodeCompleteConsumer.h:767 + /// When Kind == RK_Declaration and a FieldDecl has been passed as + /// Declaration, this will hold the identifiers name. To be used later on when + /// generating constructors f

[PATCH] D53704: [ASTImporter] Import overrides before importing the rest of the chain

2018-10-29 Thread Gabor Marton via Phabricator via cfe-commits
martong added a comment. Hi Aleksei, Thanks for the review. Yes, we encountered the issue during the analysis of Xerces. Repository: rC Clang https://reviews.llvm.org/D53704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-10-29 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. I think is good to go! Please wait on @xazax.hun or @NoQ to have the final say (it's been a while since this revision was accepted by them), but for a work-in-progress alpha checker, I like what I'm seeing. Comment at: lib/StaticAnalyzer/Checkers/En

[PATCH] D53738: [Fixed Point Arithmetic] Fixed Point Addition

2018-10-29 Thread Bevin Hansson via Phabricator via cfe-commits
ebevhan added a comment. In https://reviews.llvm.org/D53738#1278078, @rjmccall wrote: > I don't think we should add *types* just for this, but if you need to make a > different kind of `BinaryOperator` that represents that the semantics aren't > quite the same (the same way that the compound as

<    1   2