summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/include-fixer/IncludeFixer.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/include-fixer/IncludeFixer.h')
-rw-r--r--clang-tools-extra/include-fixer/IncludeFixer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang-tools-extra/include-fixer/IncludeFixer.h b/clang-tools-extra/include-fixer/IncludeFixer.h
index 01478988e0f..504668a82ef 100644
--- a/clang-tools-extra/include-fixer/IncludeFixer.h
+++ b/clang-tools-extra/include-fixer/IncludeFixer.h
@@ -22,8 +22,10 @@ class IncludeFixerActionFactory : public clang::tooling::ToolAction {
public:
/// \param Xrefs A source for matching symbols to header files.
/// \param Replacements Storage for the output of the fixer.
+ /// \param MinimizeIncludePaths whether inserted include paths are optimized.
IncludeFixerActionFactory(
- XrefsDB &Xrefs, std::vector<clang::tooling::Replacement> &Replacements);
+ XrefsDB &Xrefs, std::vector<clang::tooling::Replacement> &Replacements,
+ bool MinimizeIncludePaths = true);
~IncludeFixerActionFactory();
bool
@@ -38,6 +40,9 @@ private:
/// Replacements are written here.
std::vector<clang::tooling::Replacement> &Replacements;
+
+ /// Whether inserted include paths should be optimized.
+ bool MinimizeIncludePaths;
};
} // namespace include_fixer
OpenPOWER on IntegriCloud