clang API Documentation
#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 AvailabilityResult | getDeclAvailability (const Decl *D) |
| Retrieve the effective availability of the given declaration. | |
| static StringRef | getOrderedName (const CodeCompletionResult &R, std::string &Saved) |
| Retrieve the name that should be used to order a result. | |
| static AvailabilityResult getDeclAvailability | ( | const Decl * | D | ) | [static] |
Retrieve the effective availability of the given declaration.
Definition at line 501 of file CodeCompleteConsumer.cpp.
References clang::CodeCompletionString::getAvailability(), clang::Decl::getAvailability(), and clang::Decl::getDeclContext().
| static StringRef getOrderedName | ( | const CodeCompletionResult & | R, |
| std::string & | Saved | ||
| ) | [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 566 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<().