This patch is a small refactoring necessary for
'readability-isolate-declaration' and does not introduce functional changes.
It allows to use the utility functions without a full ASTContext and requires only the SourceManager and the LangOpts.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 23269 Build 23268: arc lint + arc unit
Event Timeline
Comment Actions
So far the change doesn't look really helpful. Are you going to use the function from code where no ASTContext is available? Can you give an example?
Comment Actions
This patch is related to https://reviews.llvm.org/D51949
To isolate variable declarations (split int * p, v; up) it is necessary to do a lot of work with source location and requires some forward and backwards lexing. The functions there just use the LangOpts and the SourceManager and don't have a ASTContext available, that why I changed this interface.
Comment Actions
Makes sense. But then I'd change "to be easier to use" to "to be callable without ASTContext" or something similar in the patch description.
Otherwise LG.