зеркало из https://github.com/microsoft/clang-1.git
Regularize the case and sort.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
21c2e20a00
Коммит
1feade8e52
|
@ -63,11 +63,11 @@ public:
|
|||
GNUInline,
|
||||
IBOutletKind, // Clang-specific. Use "Kind" suffix to not conflict with
|
||||
Malloc,
|
||||
NoDebug,
|
||||
NoInline,
|
||||
NonNull,
|
||||
NoReturn,
|
||||
NoThrow,
|
||||
Nodebug,
|
||||
Noinline,
|
||||
NonNull,
|
||||
ObjCException,
|
||||
ObjCNSObject,
|
||||
CFReturnsRetained, // Clang/Checker-specific.
|
||||
|
@ -496,9 +496,9 @@ public:
|
|||
static bool classof(const CleanupAttr *A) { return true; }
|
||||
};
|
||||
|
||||
DEF_SIMPLE_ATTR(Nodebug);
|
||||
DEF_SIMPLE_ATTR(NoDebug);
|
||||
DEF_SIMPLE_ATTR(WarnUnusedResult);
|
||||
DEF_SIMPLE_ATTR(Noinline);
|
||||
DEF_SIMPLE_ATTR(NoInline);
|
||||
|
||||
class RegparmAttr : public Attr {
|
||||
unsigned NumParams;
|
||||
|
|
|
@ -126,7 +126,7 @@ void CodeGenFunction::StartObjCMethod(const ObjCMethodDecl *OMD,
|
|||
/// its pointer, name, and types registered in the class struture.
|
||||
void CodeGenFunction::GenerateObjCMethod(const ObjCMethodDecl *OMD) {
|
||||
// Check if we should generate debug info for this method.
|
||||
if (CGM.getDebugInfo() && !OMD->hasAttr<NodebugAttr>())
|
||||
if (CGM.getDebugInfo() && !OMD->hasAttr<NoDebugAttr>())
|
||||
DebugInfo = CGM.getDebugInfo();
|
||||
StartObjCMethod(OMD, OMD->getClassInterface());
|
||||
EmitStmt(OMD->getBody());
|
||||
|
|
|
@ -202,7 +202,7 @@ void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy,
|
|||
void CodeGenFunction::GenerateCode(const FunctionDecl *FD,
|
||||
llvm::Function *Fn) {
|
||||
// Check if we should generate debug info for this function.
|
||||
if (CGM.getDebugInfo() && !FD->hasAttr<NodebugAttr>())
|
||||
if (CGM.getDebugInfo() && !FD->hasAttr<NoDebugAttr>())
|
||||
DebugInfo = CGM.getDebugInfo();
|
||||
|
||||
FunctionArgList Args;
|
||||
|
|
|
@ -360,7 +360,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
|
|||
if (D->hasAttr<AlwaysInlineAttr>())
|
||||
F->addFnAttr(llvm::Attribute::AlwaysInline);
|
||||
|
||||
if (D->hasAttr<NoinlineAttr>())
|
||||
if (D->hasAttr<NoInlineAttr>())
|
||||
F->addFnAttr(llvm::Attribute::NoInline);
|
||||
}
|
||||
|
||||
|
|
|
@ -548,10 +548,10 @@ Attr *PCHReader::ReadAttributes() {
|
|||
break;
|
||||
|
||||
SIMPLE_ATTR(Malloc);
|
||||
SIMPLE_ATTR(NoDebug);
|
||||
SIMPLE_ATTR(NoInline);
|
||||
SIMPLE_ATTR(NoReturn);
|
||||
SIMPLE_ATTR(NoThrow);
|
||||
SIMPLE_ATTR(Nodebug);
|
||||
SIMPLE_ATTR(Noinline);
|
||||
|
||||
case Attr::NonNull: {
|
||||
unsigned Size = Record[Idx++];
|
||||
|
|
|
@ -1673,10 +1673,10 @@ void PCHWriter::WriteAttributeRecord(const Attr *Attr) {
|
|||
case Attr::GNUInline:
|
||||
case Attr::IBOutletKind:
|
||||
case Attr::Malloc:
|
||||
case Attr::NoDebug:
|
||||
case Attr::NoReturn:
|
||||
case Attr::NoThrow:
|
||||
case Attr::Nodebug:
|
||||
case Attr::Noinline:
|
||||
case Attr::NoInline:
|
||||
break;
|
||||
|
||||
case Attr::NonNull: {
|
||||
|
|
|
@ -1635,7 +1635,7 @@ static void HandleModeAttr(Decl *D, const AttributeList &Attr, Sema &S) {
|
|||
cast<ValueDecl>(D)->setType(NewTy);
|
||||
}
|
||||
|
||||
static void HandleNodebugAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
||||
static void HandleNoDebugAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
||||
// check the attribute arguments.
|
||||
if (Attr.getNumArgs() > 0) {
|
||||
S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 0;
|
||||
|
@ -1648,10 +1648,10 @@ static void HandleNodebugAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
|||
return;
|
||||
}
|
||||
|
||||
d->addAttr(::new (S.Context) NodebugAttr());
|
||||
d->addAttr(::new (S.Context) NoDebugAttr());
|
||||
}
|
||||
|
||||
static void HandleNoinlineAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
||||
static void HandleNoInlineAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
||||
// check the attribute arguments.
|
||||
if (Attr.getNumArgs() != 0) {
|
||||
S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 0;
|
||||
|
@ -1664,7 +1664,7 @@ static void HandleNoinlineAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
|||
return;
|
||||
}
|
||||
|
||||
d->addAttr(::new (S.Context) NoinlineAttr());
|
||||
d->addAttr(::new (S.Context) NoInlineAttr());
|
||||
}
|
||||
|
||||
static void HandleGNUInlineAttr(Decl *d, const AttributeList &Attr, Sema &S) {
|
||||
|
@ -1843,8 +1843,8 @@ static void ProcessDeclAttribute(Scope *scope, Decl *D,
|
|||
case AttributeList::AT_const: HandleConstAttr (D, Attr, S); break;
|
||||
case AttributeList::AT_pure: HandlePureAttr (D, Attr, S); break;
|
||||
case AttributeList::AT_cleanup: HandleCleanupAttr (D, Attr, S); break;
|
||||
case AttributeList::AT_nodebug: HandleNodebugAttr (D, Attr, S); break;
|
||||
case AttributeList::AT_noinline: HandleNoinlineAttr (D, Attr, S); break;
|
||||
case AttributeList::AT_nodebug: HandleNoDebugAttr (D, Attr, S); break;
|
||||
case AttributeList::AT_noinline: HandleNoInlineAttr (D, Attr, S); break;
|
||||
case AttributeList::AT_regparm: HandleRegparmAttr (D, Attr, S); break;
|
||||
case AttributeList::IgnoredAttribute:
|
||||
case AttributeList::AT_no_instrument_function: // Interacts with -pg.
|
||||
|
|
Загрузка…
Ссылка в новой задаче