зеркало из https://github.com/microsoft/clang-1.git
Make helpers static/anonymous.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168500 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
746619a5ac
Коммит
4d9f4e5bfa
|
@ -627,8 +627,8 @@ ProgramStateRef MallocChecker::FreeMemAux(CheckerContext &C,
|
||||||
|
|
||||||
/// Checks if the previous call to free on the given symbol failed - if free
|
/// Checks if the previous call to free on the given symbol failed - if free
|
||||||
/// failed, returns true. Also, returns the corresponding return value symbol.
|
/// failed, returns true. Also, returns the corresponding return value symbol.
|
||||||
bool didPreviousFreeFail(ProgramStateRef State,
|
static bool didPreviousFreeFail(ProgramStateRef State,
|
||||||
SymbolRef Sym, SymbolRef &RetStatusSymbol) {
|
SymbolRef Sym, SymbolRef &RetStatusSymbol) {
|
||||||
const SymbolRef *Ret = State->get<FreeReturnValue>(Sym);
|
const SymbolRef *Ret = State->get<FreeReturnValue>(Sym);
|
||||||
if (Ret) {
|
if (Ret) {
|
||||||
assert(*Ret && "We should not store the null return symbol");
|
assert(*Ret && "We should not store the null return symbol");
|
||||||
|
|
|
@ -236,7 +236,8 @@ clang_getCompletionBriefComment(CXCompletionString completion_string) {
|
||||||
return createCXString(CCStr->getBriefComment(), /*DupString=*/false);
|
return createCXString(CCStr->getBriefComment(), /*DupString=*/false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
/// \brief The CXCodeCompleteResults structure we allocate internally;
|
/// \brief The CXCodeCompleteResults structure we allocate internally;
|
||||||
/// the client only sees the initial CXCodeCompleteResults structure.
|
/// the client only sees the initial CXCodeCompleteResults structure.
|
||||||
struct AllocatedCXCodeCompleteResults : public CXCodeCompleteResults {
|
struct AllocatedCXCodeCompleteResults : public CXCodeCompleteResults {
|
||||||
|
@ -298,6 +299,8 @@ struct AllocatedCXCodeCompleteResults : public CXCodeCompleteResults {
|
||||||
std::string Selector;
|
std::string Selector;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
/// \brief Tracks the number of code-completion result objects that are
|
/// \brief Tracks the number of code-completion result objects that are
|
||||||
/// currently active.
|
/// currently active.
|
||||||
///
|
///
|
||||||
|
|
Загрузка…
Ссылка в новой задаче