Changeset 490ff5c3 for src/SymTab


Ignore:
Timestamp:
Feb 14, 2018, 1:54:14 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
44b4114
Parents:
54c9000
git-author:
Rob Schluntz <rschlunt@…> (02/14/18 12:00:25)
git-committer:
Rob Schluntz <rschlunt@…> (02/14/18 13:54:14)
Message:

Minor code cleanup

Location:
src/SymTab
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Indexer.cc

    r54c9000 r490ff5c3  
    434434                        }
    435435                } else {
    436                         // Check that a Cforall declaration doesn't overload any C declaration
     436                        // Check that a Cforall declaration doesn't override any C declaration
    437437                        if ( hasCompatibleCDecl( name, mangleName, scope ) ) {
    438438                                throw SemanticError( "Cforall declaration hides C function ", decl );
     
    654654
    655655        void Indexer::print( std::ostream &os, int indent ) const {
    656             using std::cerr;
     656                using std::cerr;
    657657
    658658                if ( tables ) {
  • src/SymTab/Indexer.h

    r54c9000 r490ff5c3  
    4040
    4141                struct IdData {
    42                         DeclarationWithType * id;
    43                         Expression * baseExpr; // WithExpr
     42                        DeclarationWithType * id = nullptr;
     43                        Expression * baseExpr = nullptr; // WithExpr
     44
     45                        /// non-null if this declaration is deleted
     46                        BaseSyntaxNode * deleteStmt = nullptr;
    4447
    4548                        Expression * combine() const;
Note: See TracChangeset for help on using the changeset viewer.