summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2015-10-21 01:03:30 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2015-10-21 01:03:30 +0000
commit4c3f2b944689bdb23e929ab27815bbc87c20c035 (patch)
treebb0b2e6e539fc4a64edae76224c1185e9c0af8eb /lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
parent9a6940cef4c7f9c2e33fbbd84b775e5b4d5ffd99 (diff)
downloadbcm5719-llvm-4c3f2b944689bdb23e929ab27815bbc87c20c035.tar.gz
bcm5719-llvm-4c3f2b944689bdb23e929ab27815bbc87c20c035.zip
Fix Clang-tidy modernize-use-override warnings in some files in source/Plugins; other minor fixes.
Differential Revision: http://reviews.llvm.org/D13916 llvm-svn: 250872
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
index 65ee3e0ff5c..05d8a320a5a 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
@@ -7,8 +7,20 @@
//
//===----------------------------------------------------------------------===//
-#include <mutex> // std::once
+// C Includes
+// C++ Includes
+#include <mutex>
+// Other libraries and framework includes
+#include "clang/Basic/TargetInfo.h"
+#include "clang/Frontend/CompilerInstance.h"
+#include "clang/Frontend/FrontendActions.h"
+#include "clang/Lex/Preprocessor.h"
+#include "clang/Parse/Parser.h"
+#include "clang/Sema/Lookup.h"
+#include "clang/Serialization/ASTReader.h"
+
+// Project includes
#include "ClangModulesDeclVendor.h"
#include "lldb/Core/Log.h"
@@ -20,15 +32,6 @@
#include "lldb/Target/Target.h"
#include "lldb/Utility/LLDBAssert.h"
-#include "clang/Basic/TargetInfo.h"
-#include "clang/Frontend/CompilerInstance.h"
-#include "clang/Frontend/FrontendActions.h"
-#include "clang/Lex/Preprocessor.h"
-#include "clang/Parse/Parser.h"
-#include "clang/Sema/Lookup.h"
-#include "clang/Serialization/ASTReader.h"
-
-
using namespace lldb_private;
namespace {
@@ -38,14 +41,17 @@ namespace {
{
public:
StoringDiagnosticConsumer ();
+
void
- HandleDiagnostic (clang::DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &info);
+ HandleDiagnostic(clang::DiagnosticsEngine::Level DiagLevel,
+ const clang::Diagnostic &info) override;
void
ClearDiagnostics ();
void
DumpDiagnostics (Stream &error_stream);
+
private:
typedef std::pair<clang::DiagnosticsEngine::Level, std::string> IDAndDiagnostic;
std::vector<IDAndDiagnostic> m_diagnostics;
@@ -61,29 +67,29 @@ namespace {
llvm::IntrusiveRefCntPtr<clang::CompilerInvocation> &compiler_invocation,
std::unique_ptr<clang::CompilerInstance> &&compiler_instance,
std::unique_ptr<clang::Parser> &&parser);
-
- virtual bool
+
+ ~ClangModulesDeclVendorImpl() override = default;
+
+ bool
AddModule(ModulePath &path,
ModuleVector *exported_modules,
Stream &error_stream) override;
-
- virtual bool
+
+ bool
AddModulesForCompileUnit(CompileUnit &cu,
ModuleVector &exported_modules,
Stream &error_stream) override;
+
+ uint32_t
+ FindDecls(const ConstString &name,
+ bool append,
+ uint32_t max_matches,
+ std::vector <clang::NamedDecl*> &decls) override;
- virtual uint32_t
- FindDecls (const ConstString &name,
- bool append,
- uint32_t max_matches,
- std::vector <clang::NamedDecl*> &decls) override;
-
- virtual void
+ void
ForEachMacro(const ModuleVector &modules,
std::function<bool (const std::string &)> handler) override;
- ~ClangModulesDeclVendorImpl();
-
private:
void
ReportModuleExportsHelper (std::set<ClangModulesDeclVendor::ModuleID> &exports,
@@ -110,7 +116,7 @@ namespace {
ImportedModuleMap m_imported_modules;
ImportedModuleSet m_user_imported_modules;
};
-}
+} // anonymous namespace
StoringDiagnosticConsumer::StoringDiagnosticConsumer ()
{
@@ -164,7 +170,6 @@ GetResourceDir ()
return g_cached_resource_dir;
}
-
ClangModulesDeclVendor::ClangModulesDeclVendor()
{
}
@@ -318,7 +323,6 @@ ClangModulesDeclVendorImpl::AddModule(ModulePath &path,
return false;
}
-
bool
ClangModulesDeclVendor::LanguageSupportsClangModules (lldb::LanguageType language)
{
@@ -597,10 +601,6 @@ ClangModulesDeclVendorImpl::ForEachMacro(const ClangModulesDeclVendor::ModuleVec
}
}
-ClangModulesDeclVendorImpl::~ClangModulesDeclVendorImpl()
-{
-}
-
clang::ModuleLoadResult
ClangModulesDeclVendorImpl::DoGetModule(clang::ModuleIdPath path,
bool make_visible)
OpenPOWER on IntegriCloud