Skip to content
  • Oliver Kellogg's avatar
    Fix for "C++ importer does not recognize 'noexcept' keyword" : · 0372f89d
    Oliver Kellogg authored
    lib/cppparser/keywords.h
    - Align INSERT calls as table. Add INSERT("noexcept", Token_noexcept).
    
    lib/cppparser/lexer.h
    - In enum Type add Token_noexcept.
    
    lib/cppparser/parser.cpp
    - In functions skipUntilDeclaration, skipUntilStatement while-loop
      switch add case Token_noexcept.
    - In function parseExceptionSpecification handle the case
      (m_lexer->lookAhead(0) == Token_noexcept).
    
    test/import/cxx/const-methods.h
    - Rename file to const-noexcept-methods.h.
    
    test/import/cxx/const-noexcept-methods.h
    - Rename class to ConstNoexceptMethodClass.
    - Add NoexceptMethod with trailing noexcept.
    - Add ConstNoexceptMethod with const noexcept and implementation.
    
    BUG: 442134
    CCBUG: 338649
    0372f89d