Changeset 05e6eb5 for src/Validate


Ignore:
Timestamp:
Jul 30, 2018, 4:43:48 PM (3 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
5cbacf1
Parents:
fd2debf
git-author:
Rob Schluntz <rschlunt@…> (07/30/18 15:38:10)
git-committer:
Rob Schluntz <rschlunt@…> (07/30/18 16:43:48)
Message:

Warn about constructor/destructor priorities 101-200 only when not building the library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/HandleAttributes.cc

    rfd2debf r05e6eb5  
    117117                                std::string name = attr->normalizedName();
    118118                                if (name == "init_priority") {
    119 
     119                                        // TODO: implement C++-like init_priority attribute
    120120                                }
    121121                        }
     
    139139                                                        SemanticWarning(attr->location, Warning::GccAttributes,
    140140                                                                toCString( name, " priorities from 0 to 100 are reserved for the implementation" ) );
    141                                                 } else if (priority < 201) {
     141                                                } else if (priority < 201 && ! buildingLibrary()) {
    142142                                                        SemanticWarning(attr->location, Warning::GccAttributes,
    143143                                                                toCString( name, " priorities from 101 to 200 are reserved for the implementation" ) );
Note: See TracChangeset for help on using the changeset viewer.