[PATCH] D42623: [clang-tidy] Add a Lexer util to get the source text of a statement
Tristan Bourvon via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 13 06:26:50 PST 2018
tbourvon abandoned this revision.
tbourvon added inline comments.
================
Comment at: clang-tidy/utils/LexerUtils.h:26
+/// Get source code text for statement.
+Optional<StringRef> getStmtText(const Stmt* Statement, const SourceManager& SM);
+
----------------
alexfh wrote:
> aaron.ballman wrote:
> > Formatting (elsewhere as well).
> >
> > You should run the patch under clang-format to handle this sort of thing.
> Have you seen clang::tooling::fixit::getText? It should cover this use case.
Hadn't seen that! Seems to be making this whole patch obsolete, I'm closing it
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D42623
More information about the cfe-commits
mailing list