fix: astvisitor fixes

* renaming files
* fix typo
* clang waringns
This commit is contained in:
Andreas Stallinger
2016-11-03 12:38:36 +01:00
parent 5b47d195ff
commit 98869e51a5
9 changed files with 19 additions and 17 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
ASTConsumer::ASTConsumer(clang::ASTContext* context, clang::Preprocessor* preprocessor, ParserClient* client, FileRegister* fileRegister)
{
if (ApplicationSettings::getInstance()->getVerboseInderxerLoggingEnabled())
if (ApplicationSettings::getInstance()->getVerboseIndexerLoggingEnabled())
{
m_visitor = std::make_shared<CxxVerboseAstVisitor>(context, preprocessor, client, fileRegister);
}
@@ -1119,8 +1119,9 @@ AccessKind CxxAstVisitor::convertAccessSpecifier(clang::AccessSpecifier access)
return ACCESS_PROTECTED;
case clang::AS_private:
return ACCESS_PRIVATE;
case clang::AS_none:
return ACCESS_NONE;
}
return ACCESS_NONE;
}
SymbolKind CxxAstVisitor::convertTagKind(clang::TagTypeKind tagKind)
@@ -1135,11 +1136,12 @@ SymbolKind CxxAstVisitor::convertTagKind(clang::TagTypeKind tagKind)
return SYMBOL_CLASS;
case clang::TTK_Enum:
return SYMBOL_ENUM;
case clang::TTK_Interface:
return SYMBOL_KIND_MAX;
}
return SYMBOL_KIND_MAX;
}
NameHierarchy CxxAstVisitor::getContextName(const int skip) const
NameHierarchy CxxAstVisitor::getContextName(const size_t skip) const
{
if (m_contextStack.size() <= skip)
{
@@ -82,7 +82,7 @@ public:
virtual bool TraverseDeclRefExpr(clang::DeclRefExpr* s);
virtual bool TraverseTemplateSpecializationTypeLoc(clang::TemplateSpecializationTypeLoc loc);
virtual bool TraverseUnresolvedLookupExpr(clang::UnresolvedLookupExpr* s);
virtual bool TraverseTemplateArgumentLoc(const clang::TemplateArgumentLoc& loc);;
virtual bool TraverseTemplateArgumentLoc(const clang::TemplateArgumentLoc& loc);
void traverseDeclContextHelper(clang::DeclContext *d);
bool TraverseCallCommon(clang::CallExpr* s);
@@ -129,7 +129,7 @@ protected:
private:
typedef clang::RecursiveASTVisitor<CxxAstVisitor> base;
NameHierarchy getContextName(const int skip = 0) const;
NameHierarchy getContextName(const size_t skip = 0) const;
bool checkIgnoresTypeLoc(const clang::TypeLoc& tl);
struct FileIdHash