summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/CommentHandlerTest.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-06-09 01:36:10 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-06-09 01:36:10 +0000
commitd9259c2f5e29875fc0223ebf1c9427f197af212b (patch)
tree4fc98adfbb114c1fc0cc5bb805eed2a2cc90ba9a /clang/unittests/Tooling/CommentHandlerTest.cpp
parent735e92c29a1413761c6db5e1ae8e7ad48ae17d67 (diff)
downloadbcm5719-llvm-d9259c2f5e29875fc0223ebf1c9427f197af212b.tar.gz
bcm5719-llvm-d9259c2f5e29875fc0223ebf1c9427f197af212b.zip
Remove 'Filename' parameter from BeginSourceFileAction.
No-one was using this, and it's not meaningful in general -- FrontendActions can be run on inputs that don't have a corresponding source file. The current frontend input can be obtained by asking the FrontendAction if any future action actually needs it. llvm-svn: 305045
Diffstat (limited to 'clang/unittests/Tooling/CommentHandlerTest.cpp')
-rw-r--r--clang/unittests/Tooling/CommentHandlerTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/CommentHandlerTest.cpp b/clang/unittests/Tooling/CommentHandlerTest.cpp
index b42b28b9c94..9c3abdc4b15 100644
--- a/clang/unittests/Tooling/CommentHandlerTest.cpp
+++ b/clang/unittests/Tooling/CommentHandlerTest.cpp
@@ -70,8 +70,7 @@ private:
CommentHandlerAction(CommentHandlerVisitor *Visitor)
: TestAction(Visitor) { }
- bool BeginSourceFileAction(CompilerInstance &CI,
- StringRef FileName) override {
+ bool BeginSourceFileAction(CompilerInstance &CI) override {
CommentHandlerVisitor *V =
static_cast<CommentHandlerVisitor*>(this->Visitor);
V->PP = &CI.getPreprocessor();
OpenPOWER on IntegriCloud