clang API Documentation
#include "clang/AST/ASTContext.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/ExprObjC.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Sema/Sema.h"
#include "clang/Sema/SemaFixItUtils.h"
Go to the source code of this file.
Functions | |
static bool | isMacroDefined (const Sema &S, SourceLocation Loc, StringRef Name) |
static std::string | getScalarZeroExpressionForType (const Type &T, SourceLocation Loc, const Sema &S) |
static std::string getScalarZeroExpressionForType | ( | const Type & | T, |
SourceLocation | Loc, | ||
const Sema & | S | ||
) | [static] |
Definition at line 171 of file SemaFixItUtils.cpp.
References clang::Type::isBlockPointerType(), clang::Type::isBooleanType(), clang::Type::isChar16Type(), clang::Type::isChar32Type(), clang::Type::isCharType(), clang::Type::isEnumeralType(), isMacroDefined(), clang::Type::isMemberPointerType(), clang::Type::isObjCObjectPointerType(), clang::Type::isPointerType(), clang::Type::isRealFloatingType(), clang::Type::isScalarType(), clang::Type::isWideCharType(), and clang::Sema::LangOpts.
Referenced by clang::Sema::getFixItZeroInitializerForType(), and clang::Sema::getFixItZeroLiteralForType().
static bool isMacroDefined | ( | const Sema & | S, |
SourceLocation | Loc, | ||
StringRef | Name | ||
) | [static] |
Definition at line 163 of file SemaFixItUtils.cpp.
References clang::MacroDirective::findDirectiveAtLoc(), clang::IdentifierTable::get(), clang::Sema::getASTContext(), clang::Preprocessor::getMacroDirectiveHistory(), clang::Sema::getSourceManager(), clang::IdentifierInfo::hadMacroDefinition(), clang::ASTContext::Idents, and clang::Sema::PP.
Referenced by getScalarZeroExpressionForType().