parent
bc5f581d47
commit
c5cad396dd
|
@ -56,6 +56,7 @@ private:
|
|||
// Returns \c true if line or one if its children is affected.
|
||||
bool nonPPLineAffected(AnnotatedLine *Line,
|
||||
const AnnotatedLine *PreviousLine);
|
||||
|
||||
SourceManager &SourceMgr;
|
||||
const SmallVector<CharSourceRange, 8> Ranges;
|
||||
};
|
||||
|
@ -63,4 +64,5 @@ private:
|
|||
} // namespace format
|
||||
} // namespace clang
|
||||
|
||||
#endif // LLVM_CLANG_LIB_FORMAT_WHITESPACEMANAGER_H
|
||||
#endif // LLVM_CLANG_LIB_FORMAT_AFFECTEDRANGEMANAGER_H
|
||||
#
|
||||
|
|
|
@ -1460,7 +1460,7 @@ public:
|
|||
std::unique_ptr<FileManager> FileMgr,
|
||||
std::unique_ptr<SourceManager> VirtualSM,
|
||||
std::unique_ptr<DiagnosticsEngine> Diagnostics,
|
||||
std::vector<CharSourceRange> CharRanges)
|
||||
const std::vector<CharSourceRange> &CharRanges)
|
||||
: Style(Style), ID(ID), CharRanges(CharRanges.begin(), CharRanges.end()),
|
||||
SM(*VirtualSM), FileMgr(std::move(FileMgr)),
|
||||
VirtualSM(std::move(VirtualSM)), Diagnostics(std::move(Diagnostics)) {}
|
||||
|
|
Loading…
Reference in New Issue