gribozavr2 accepted this revision.
gribozavr2 added a comment.
This revision is now accepted and ready to land.
LGTM with a few minor edits.
Do you have commit access?
Comment at:
clang-tools-extra/clang-tidy/bugprone/AssignmentInIfConditionCheck.cpp:19-21
+void AssignmentInI
gribozavr2 added inline comments.
Comment at:
clang-tools-extra/test/clang-tidy/checkers/bugprone-assignment-in-if-condition.cpp:84
+
+// Add something that doesn't trigger the check here.
+void awesome_f2(int arg) {
CHANGES SINCE LAST ACTION
https://review
gribozavr2 added a comment.
Thanks! I'll commit this for you once you upload a refreshed patch (that
applies to the main branch cleanly).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127114/new/
https://reviews.llvm.org/D127114
___
cfe-comm
This revision was automatically updated to reflect the committed changes.
Closed by commit rG05130a6ba7d9: new clang-tidy checker for assignments within
condition clause of if statement (authored by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llv
gribozavr2 added inline comments.
Comment at:
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h:263-267
+ Possible return values are:
+ /// - `Satisfiable` : There exists a satisfying assignment for
`Constraints`,
+ ///the solutio
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
This revision is now accepted and ready to land.
Comment at:
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h:266
+ /// - `Unsatisfiable`: A satisfying assignment does not exist.
+ /// - `
gribozavr2 added inline comments.
Comment at: clang/include/clang/Analysis/FlowSensitive/Solver.h:67
+/// boolean formula if available. Otherwise, an empty optional is returned.
+std::optional>
+getSolution() const {
Please use llvm::Optional, we can'
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG19e21887eb18: [clang][dataflow] Return a solution from the
solver when `Constraints` are… (authored by wyt, committed by gribozavr).
Changed prior t
gribozavr updated this revision to Diff 447609.
gribozavr added a comment.
Actually visit a subexpression
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130522/new/
https://reviews.llvm.org/D130522
Files:
clang/lib/Analysis/FlowSensitive/WatchedL
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3281138aad80: [clang][dataflow] Fix SAT solver crashes on `X
^ X` and `X v X` (authored by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGE
gribozavr2 added inline comments.
Comment at: clang/include/clang/Analysis/FlowSensitive/Value.h:40-41
// Synthetic boolean values are either atomic values or composites that
// represent conjunctions, disjunctions, and negations.
AtomicBool,
sga
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb5e3dac33d42: [clang][dataflow] Add explicit "AST"
nodes for implications and iff (authored by gribozavr).
Changed prior to commit:
https://review
gribozavr2 requested changes to this revision.
gribozavr2 added a comment.
This revision now requires changes to proceed.
Sorry, could you rebase the patch? It does not apply cleanly anymore.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130270/new/
gribozavr2 added inline comments.
Comment at:
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h:110
+ /// Assigns `Loc` as the storage location of `return`.
+ ///
Comment at:
clang/include/clang/Analysis/FlowSensitive/
gribozavr2 added inline comments.
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h:139
+/// Virtual base class for "dataflow models": reusable analysis components that
+/// model a particular aspect of program semantics, with respect to a specific
-
gribozavr2 added inline comments.
Comment at: clang/lib/Analysis/FlowSensitive/Models/ChromiumCheckModel.cpp:16-17
+namespace dataflow {
+/// Determines whether `D` is one of the methods used to implement Chromium's
+/// `CHECK` macros.
+bool isCheckLikeMethod(llvm::SmallDenseSet
gribozavr2 added a comment.
I rolled it back while @devin.jeanpierre investigates.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114732/new/
https://reviews.llvm.org/D114732
___
cfe-commits mailing list
gribozavr2 accepted this revision.
gribozavr2 added a comment.
This revision is now accepted and ready to land.
Approving the delta for the PS4 fix (relying or @rsmith 's approval for the
actual patch -- https://reviews.llvm.org/D114732).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAS
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG56d46b36fc23: [clang] roll-forward "[clang] Mark
`trivial_abi` types as "trivially… (authored by devin.jeanpierre,
committed by gribozavr).
Reposit
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf2b31f06b79a: re-roll-forward "[clang] Mark
`trivial_abi` types as "trivially relocatable"".""
(authored by devin.jeanpierre, committed by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
This revision is now accepted and ready to land.
Comment at:
clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp:107
+ ASSERT_EQ(Errors.size(), 1U);
+ // This should match the input; this
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/unittests/Analysis/FlowSensitive/TestingSupport.h:223
+/// Utility class for creating boolean values.
+class BoolValueManager {
--
gribozavr2 added inline comments.
Comment at: clang/include/clang/Analysis/FlowSensitive/DebugSupport.h:24-25
+namespace dataflow {
+/// Utility functions which return a string representation for a boolean value
+/// `B`.
+///
Comment at: clan
gribozavr2 added inline comments.
Comment at: clang/lib/Analysis/FlowSensitive/DebugSupport.cpp:143
+
+return formatv("{0:$[\n]}", llvm::make_range(Lines.begin(), Lines.end()));
+ }
I appreciate the table, but it looks quite bulky... Could we switch to a sim
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
Comment at: clang/lib/Analysis/FlowSensitive/DebugSupport.cpp:33-34
+ explicit DebugStringGenerator(
+ llvm::DenseMap UserSpecifiedAtomNames)
+ : Counter(0), AtomNames(std::move(UserSpecifiedAtomNames
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
Comment at: clang/include/clang/Analysis/FlowSensitive/DebugSupport.h:49-56
+debugString(std::vector &Constraints, Solver::Result &Result,
+llvm::DenseMap AtomNames = {{}});
+inline std::string
+debu
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h:66
explicit DataflowAnalysis(ASTContext &Context) : Context(Context) {}
explicit D
gribozavr2 added inline comments.
Comment at: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp:231
+ // parameters still need to be given `StorageLocation`s anyway, so this code
+ // will need to be generalized later.
+ for (; ArgIt != ArgEnd; ++ParamIt, ++ArgIt) {
---
gribozavr created this revision.
Herald added subscribers: martong, tschuett, mgrang, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
gribozavr requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Start by dumping the flow
gribozavr created this revision.
Herald added subscribers: martong, tschuett, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
gribozavr requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monor
gribozavr updated this revision to Diff 446988.
gribozavr added a comment.
Moved some changes to a different revision
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130398/new/
https://reviews.llvm.org/D130398
Files:
clang/include/clang/Analysis/
gribozavr created this revision.
Herald added subscribers: martong, tschuett, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
gribozavr requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monor
gribozavr updated this revision to Diff 446991.
gribozavr added a comment.
Fix the build
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130399/new/
https://reviews.llvm.org/D130399
Files:
clang/include/clang/Analysis/FlowSensitive/DebugSupport.h
gribozavr updated this revision to Diff 446992.
gribozavr added a comment.
Reverted more changes broken out to separate revisions
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130398/new/
https://reviews.llvm.org/D130398
Files:
clang/include/cla
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG589ddd7fe8e4: [clang][dataflow] ArrayRef'ize
debugString() (authored by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGee6aba85aa48: [clang][dataflow] Expose stringification
functions for SAT solver enums (authored by gribozavr).
Changed prior to commit:
https://re
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb5414b566a5a: [clang][dataflow] Add
DataflowEnvironment::dump() (authored by gribozavr).
Changed prior to commit:
https://reviews.llvm.org/D130398
gribozavr created this revision.
Herald added subscribers: carlosgalvezp, cishida, cmtice, usaxena95, kadircet,
arphaman, mgrang.
Herald added a reviewer: jhenderson.
Herald added a reviewer: aaron.ballman.
Herald added a reviewer: ributzka.
Herald added a project: All.
gribozavr requested review
gribozavr created this revision.
Herald added subscribers: bzcheeseman, sdasgup3, carlosgalvezp, wenzhicui,
wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh,
grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst,
shauheen, rriddle, mehdi_amini, usaxe
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcd9a5cfd2e4e: Use the range-based overload of llvm::sort
where possible (authored by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGES SINC
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaba43035bdf8: Use llvm::sort instead of std::sort where
possible (authored by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST
gribozavr created this revision.
Herald added subscribers: martong, tschuett, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
gribozavr requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The latter way to abbreviate is a
gribozavr updated this revision to Diff 447067.
gribozavr added a comment.
Reverted an unintended edit
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130423/new/
https://reviews.llvm.org/D130423
Files:
clang/lib/Analysis/FlowSensitive/DataflowAna
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc0c9d717dfd2: [clang][dataflow] Rename iterators from IT to
It (authored by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST AC
gribozavr created this revision.
Herald added subscribers: martong, tschuett, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
gribozavr requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Previously we used to desugar impl
gribozavr created this revision.
Herald added subscribers: martong, tschuett, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
gribozavr requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
BooleanFormula::addClause has an i
gribozavr updated this revision to Diff 447484.
gribozavr added a comment.
Normalized more comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130519/new/
https://reviews.llvm.org/D130519
Files:
clang/include/clang/Analysis/FlowSensitive/Data
gribozavr2 added inline comments.
Comment at: clang/lib/Analysis/FlowSensitive/WatchedLiteralsSolver.cpp:332
+
+ if (LeftSubVar == RightSubVar) {
+// `X <=> (A <=> A)` is equvalent to `X` which is already in
xazax.hun wrote:
> xazax.hun wrote:
> > I
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/include/clang/AST/CommentCommands.td:93
+def N : InlineCommand<"n", 0>;
+
Could you add a test that shows that the text
gribozavr2 accepted this revision.
gribozavr2 added a comment.
This revision is now accepted and ready to land.
Nice!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125473/new/
https://reviews.llvm.org/D125473
__
gribozavr marked 3 inline comments as done.
gribozavr added inline comments.
Comment at:
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h:408
-public:
- enum Kind { BasicBRKind, PathSensitiveBRKind };
-
NoQ wrote:
> Hey, i just added that! :D (
gribozavr marked an inline comment as done.
gribozavr added inline comments.
Comment at:
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h:408
-public:
- enum Kind { BasicBRKind, PathSensitiveBRKind };
-
NoQ wrote:
> gribozavr wrote:
> > NoQ wro
gribozavr updated this revision to Diff 216342.
gribozavr marked an inline comment as done.
gribozavr added a comment.
Updated a comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66473/new/
https://reviews.llvm.org/D66473
Files:
clang/inclu
gribozavr marked 2 inline comments as done.
gribozavr added inline comments.
Comment at: clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2343
InterExplodedGraphMap ForwardMap;
- TrimmedGraph = OriginalGraph->trim(Nodes, &ForwardMap, &InverseMap);
Szelethus wr
This revision was automatically updated to reflect the committed changes.
gribozavr marked an inline comment as done.
Closed by commit rL369504: Removed some dead code in BugReporter and related
files (authored by gribozavr, committed by ).
Herald added a project: LLVM.
Herald added a subscriber:
gribozavr added inline comments.
Comment at: clang/lib/Sema/SemaInit.cpp:6775
+if (!pathOnlyInitializesGslPointer(Path))
+ Init = const_cast(Init->skipRValueSubobjectAdjustments());
I'm afraid this change could disable some other analysis, which would
gribozavr accepted this revision.
gribozavr added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:4596
+for (Decl *Redecl : D->redecls()) {
+ Redecl->addAttr(::new (S.Context)
+ OwnerA
gribozavr accepted this revision.
gribozavr added a comment.
This revision is now accepted and ready to land.
LGTM, although I'd be more comfortable with a whitelist of macros.
Comment at: clang-tools-extra/test/clang-tidy/google-runtime-references.cpp:156
+DEFINE_F(func) {}
\
gribozavr accepted this revision.
gribozavr added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/lib/Tooling/Refactoring/Transformer.cpp:197
// Verify the existence and validity of the AST node that roots this rule.
+ SourceLocation Root
gribozavr added a comment.
I will commit on Monday.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66700/new/
https://reviews.llvm.org/D66700
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http
gribozavr added inline comments.
Comment at: clang/lib/AST/Comment.cpp:151
+static bool getFunctionTypeLoc(TypeLoc TL, FunctionTypeLoc &ResFTL,
+ bool testTypedefTypeLoc = false) {
TypeLoc PrevTL;
Why is the new functionality turn
This revision was automatically updated to reflect the committed changes.
Closed by commit rL369873: [Wdocumentation] improve wording of a warning
message (authored by gribozavr, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
http
gribozavr added inline comments.
Comment at: clang/lib/AST/Comment.cpp:151
+static bool getFunctionTypeLoc(TypeLoc TL, FunctionTypeLoc &ResFTL,
+ bool testTypedefTypeLoc = false) {
TypeLoc PrevTL;
Mordante wrote:
> gribozavr wrote
gribozavr accepted this revision.
gribozavr added a comment.
This revision is now accepted and ready to land.
Regarding adding a test for `DeclInfo` -- SGTM as well.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66722/new/
https://reviews.llvm.org/D66722
_
gribozavr added a comment.
Thanks for the contribution! In abstract, I think it is a good checker,
however, the implementation largely duplicates
`clang-tidy/bugprone/PosixReturnCheck.cpp` -- do you think you could factor out
the common parts? I see at least two ways:
- Factor out a library, u
gribozavr added a comment.
It does seem reasonable for Clangd to recover when it sees unknown command line
flags (after all, in compiler_commands.json we can see command line flags from
past and future versions of Clang, GCC and other compilers -- whatever the
build system decided to write ther
gribozavr added inline comments.
Comment at:
clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp:106
+// argument, while the change spans only the argument AND there are two such
+// matches. Here, we expect a conflict between the two matches and the second
gribozavr added inline comments.
Comment at: clang/lib/Sema/SemaInit.cpp:6775
+if (!pathOnlyInitializesGslPointer(Path))
+ Init = const_cast(Init->skipRValueSubobjectAdjustments());
xazax.hun wrote:
> gribozavr wrote:
> > I'm afraid this change could d
gribozavr added a comment.
Sorry for the silly comments, but my main point is, I guess, that I don't quite
understand the design towards which you are refactoring, and to meaningfully
review patches I need to be on the same page.
Comment at: clang/include/clang/StaticAnalyzer
gribozavr accepted this revision.
gribozavr added a comment.
This revision is now accepted and ready to land.
I see, it all makes sense now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66676/new/
https://reviews.llvm.org/D66676
___
gribozavr created this revision.
Herald added subscribers: cfe-commits, mgorny.
Herald added a project: clang.
It is a separate abstraction that is used in more contexts than just
a helper for ClangTidyDiagnosticConsumer.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66747
Fi
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa6fed93f0d10: Moved GlobList into a separate header file
(authored by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66747/new/
https://reviews.l
gribozavr added inline comments.
Comment at: clang/tools/libclang/Indexing.cpp:126
+/// Is thread-safe.
+class SharedParsedRegionsStorage {
std::mutex Mux;
"SharedParsedRegions"? "ThreadSafeParsedRegions"?
Comment at: clang/tools/libclang/In
gribozavr created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
gribozavr added a reviewer: ilya-biryukov.
The last glob that matches the string decides whether that string is
included or excluded.
Repository:
rG LLVM Github Monorepo
https://reviews.llv
gribozavr created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
I think it makes method implementations more obvious.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66788
Files:
clang-tools-extra/clang-tidy/GlobList.cpp
clang-tools-e
gribozavr accepted this revision.
gribozavr added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/include/clang/Frontend/CompilerInvocation.h:150
///
+ /// If an error was encountered while parsing the arguments, \returns false
+ /// and a
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfd2315ce2101: GlobList: added a clear test for pattern
priority (authored by gribozavr).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66787/new/
https://re
gribozavr marked an inline comment as done.
gribozavr added inline comments.
Comment at: clang-tools-extra/clang-tidy/GlobList.cpp:46
+GlobList::GlobList(StringRef Globs) {
+ do {
+GlobListItem Item;
ilya-biryukov wrote:
> NIT: I suggest using `for (;!Globs.
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370039: Refactor GlobList from an ad-hoc linked list to a
vector (authored by gribozavr, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
h
gribozavr accepted this revision.
gribozavr added a comment.
This revision is now accepted and ready to land.
LGTM with all comments addressed.
Comment at: clang-tools-extra/test/clang-tidy/bugprone-posix-return.cpp:169
int posix_fadvise(int fd, off_t offset, off_t len, int ad
gribozavr created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
gribozavr added a reviewer: ilya-biryukov.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66797
Files:
clang/include/clang/Frontend/CompilerInvocation.h
clang/lib/Frontend
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370122: ArrayRef'ized
CompilerInvocation::CreateFromArgs (authored by gribozavr, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://r
gribozavr accepted this revision.
gribozavr added inline comments.
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:70
+- New :doc:`bugprone-posix-return
+ ` check.
jcai19 wrote:
> Eugene.Zelenko wrote:
> > Check is not new, just modified. Such check should
gribozavr accepted this revision.
gribozavr added inline comments.
This revision is now accepted and ready to land.
Comment at: clang-tools-extra/clang-tidy/utils/TypeTraits.cpp:57
return true;
+ // Don't perform the check on an ill-formed Decl. As we will visit every
clas
gribozavr created this revision.
Herald added subscribers: cfe-commits, arphaman.
Herald added a project: clang.
gribozavr added a parent revision: D66875: [Index] Marked a bunch of classes
'final'.
Doing so removes one reason to create a custom FrontendAction.
FrontendActions are not desirable b
gribozavr created this revision.
Herald added subscribers: cfe-commits, arphaman.
Herald added a project: clang.
gribozavr added a reviewer: ilya-biryukov.
gribozavr added a child revision: D66876: Indexing: create PP callbacks in the
ASTConsumer.
This file defines multiple inheritance hierarchie
gribozavr created this revision.
Herald added subscribers: cfe-commits, arphaman.
Herald added a project: clang.
Doing so removes the last reason to expose a FrontendAction from
libIndex.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66877
Files:
clang/lib/Index/IndexingAct
gribozavr created this revision.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous.
Herald added a project: clang.
gribozavr added reviewers: ilya-biryukov, jkorous.
Herald added a subscriber: dexonsmith.
gribozavr added a parent revision: D66877: Moved the IndexDataConsumer::finis
gribozavr created this revision.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous.
Herald added a project: clang.
gribozavr added reviewers: ilya-biryukov, jkorous.
Herald added a subscriber: dexonsmith.
gribozavr added a parent revision: D66878: [Index] Stopped wrapping
Frontend
gribozavr marked 2 inline comments as done.
gribozavr added inline comments.
Comment at: clang/lib/Index/IndexingAction.cpp:77
+IndexCtx->getDataConsumer().setPreprocessor(PP);
+PP->addPPCallbacks(std::make_unique(IndexCtx));
+ }
ilya-biryukov wrote:
> T
gribozavr marked 4 inline comments as done.
gribozavr added inline comments.
Comment at: clang-tools-extra/clangd/index/IndexAction.cpp:217
std::unique_ptr Includes;
+ index::IndexingOptions Opts;
std::unique_ptr PragmaHandler;
ilya-biryukov wrote:
> Are t
gribozavr created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66884
Files:
clang/include/clang/AST/NSAPI.h
clang/lib/AST/NSAPI.cpp
Index: clang/lib/AST/NSAPI.cpp
==
gribozavr added inline comments.
Comment at: clang/include/clang/Index/IndexingAction.h:60
+
+inline std::unique_ptr createIndexingASTConsumer(
+std::shared_ptr DataConsumer,
jkorous wrote:
> Why not use default argument instead of overloading?
Writing a whol
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370298: Removed dead code from clang/AST/NSAPI.h (authored
by gribozavr, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.l
gribozavr added a comment.
Committed as r370321.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66875/new/
https://reviews.llvm.org/D66875
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https:/
gribozavr added a comment.
Committed as r370323.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66876/new/
https://reviews.llvm.org/D66876
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https:/
gribozavr closed this revision.
gribozavr marked an inline comment as done.
gribozavr added a comment.
Committed as r370336.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66877/new/
https://reviews.llvm.org/D66877
___
gribozavr marked 2 inline comments as done.
gribozavr added a comment.
Committed as r370337.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66878/new/
https://reviews.llvm.org/D66878
___
cfe-commits mai
This revision was automatically updated to reflect the committed changes.
Closed by commit rL370338: [Index] Added a ShouldSkipFunctionBody callback to
libIndex, and refactored… (authored by gribozavr, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed
gribozavr created this revision.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous.
Herald added a project: clang.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66947
Files:
clang-tools-extra/clang-doc/ClangDoc.cpp
clang-tools-extra/clang-include-fixer/find
601 - 700 of 1131 matches
Mail list logo