forked from OSchip/llvm-project
[clangd] Fix use-after-free in ArgStripper
This commit is contained in:
parent
9697a9e2d3
commit
f782d9c700
|
@ -12,6 +12,7 @@
|
||||||
#include "clang/Tooling/ArgumentsAdjusters.h"
|
#include "clang/Tooling/ArgumentsAdjusters.h"
|
||||||
#include "clang/Tooling/CompilationDatabase.h"
|
#include "clang/Tooling/CompilationDatabase.h"
|
||||||
#include "llvm/ADT/StringMap.h"
|
#include "llvm/ADT/StringMap.h"
|
||||||
|
#include <deque>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -92,7 +93,7 @@ private:
|
||||||
const Rule *matchingRule(llvm::StringRef Arg, unsigned Mode,
|
const Rule *matchingRule(llvm::StringRef Arg, unsigned Mode,
|
||||||
unsigned &ArgCount) const;
|
unsigned &ArgCount) const;
|
||||||
llvm::SmallVector<Rule, 4> Rules;
|
llvm::SmallVector<Rule, 4> Rules;
|
||||||
std::vector<std::string> Storage; // Store strings not found in option table.
|
std::deque<std::string> Storage; // Store strings not found in option table.
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace clangd
|
} // namespace clangd
|
||||||
|
|
Loading…
Reference in New Issue