clang
3.7.0
|
#include "clang/Sema/CodeCompleteConsumer.h"
#include "clang-c/Index.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/Sema/Scope.h"
#include "clang/Sema/Sema.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cstring>
#include <functional>
Go to the source code of this file.
Functions | |
static std::string | getOverloadAsString (const CodeCompletionString &CCS) |
static AvailabilityResult | getDeclAvailability (const Decl *D) |
Retrieve the effective availability of the given declaration. More... | |
static StringRef | getOrderedName (const CodeCompletionResult &R, std::string &Saved) |
Retrieve the name that should be used to order a result. More... | |
|
static |
Retrieve the effective availability of the given declaration.
Definition at line 526 of file CodeCompleteConsumer.cpp.
References clang::CodeCompletionString::getAvailability(), clang::Decl::getAvailability(), and clang::Decl::getDeclContext().
|
static |
Retrieve the name that should be used to order a result.
If the name needs to be constructed as a string, that string will be saved into Saved and the returned StringRef will refer to it.
Definition at line 591 of file CodeCompleteConsumer.cpp.
References clang::CodeCompletionResult::Declaration, clang::DeclarationName::getAsIdentifierInfo(), clang::DeclarationName::getAsString(), clang::NamedDecl::getDeclName(), clang::Selector::getIdentifierInfoForSlot(), clang::IdentifierInfo::getName(), clang::DeclarationName::getObjCSelector(), clang::CodeCompletionString::getTypedText(), clang::DeclarationName::isObjCZeroArgSelector(), clang::CodeCompletionResult::Keyword, clang::CodeCompletionResult::Kind, clang::CodeCompletionResult::Macro, clang::CodeCompletionResult::Pattern, clang::CodeCompletionResult::RK_Declaration, clang::CodeCompletionResult::RK_Keyword, clang::CodeCompletionResult::RK_Macro, and clang::CodeCompletionResult::RK_Pattern.
Referenced by clang::operator<().
|
static |
Definition at line 489 of file CodeCompleteConsumer.cpp.
References AttributeLangSupport::C, clang::CodeCompletionString::CK_CurrentParameter, clang::CodeCompletionString::CK_Informative, clang::CodeCompletionString::CK_ResultType, and clang::Result.
Referenced by clang::PrintingCodeCompleteConsumer::ProcessOverloadCandidates().