Skip to content
Permalink
Browse files

Add noexcept to astyle rules

  • Loading branch information
nyalldawson committed Mar 9, 2016
1 parent 8389b7f commit db69451a7df33f995e0a3bf69e9aad9d97b1dfb6
Showing with 4 additions and 1 deletion.
  1. +3 −0 src/astyle/ASResource.cpp
  2. +1 −1 src/astyle/astyle.h
@@ -56,6 +56,7 @@ const string ASResource::AS_TRY = string("try");
const string ASResource::AS_CATCH = string("catch");
const string ASResource::AS_FINALLY = string("finally");
const string ASResource::AS_THROWS = string("throws");
const string ASResource::AS_NOEXCEPT = string("noexcept");
const string ASResource::AS_CONST = string("const");
const string ASResource::AS_OVERRIDE = string("override");

@@ -215,6 +216,7 @@ void ASResource::buildHeaders(vector<const string*> &headers, int fileType, bool
headers.push_back(&AS_EXTERN);
headers.push_back(&AS_TEMPLATE);
headers.push_back(&AS_OVERRIDE);
headers.push_back(&AS_NOEXCEPT);
}

if (fileType == JAVA_TYPE)
@@ -287,6 +289,7 @@ void ASResource::buildNonParenHeaders(vector<const string*> &nonParenHeaders, in
nonParenHeaders.push_back(&AS_EXTERN);
nonParenHeaders.push_back(&AS_TEMPLATE);
nonParenHeaders.push_back(&AS_OVERRIDE);
nonParenHeaders.push_back(&AS_NOEXCEPT);
}

if (fileType == JAVA_TYPE)
@@ -113,7 +113,7 @@ class ASResource
static const string AS_DO, AS_WHILE;
static const string AS_FOR;
static const string AS_SWITCH, AS_CASE, AS_DEFAULT;
static const string AS_TRY, AS_CATCH, AS_THROWS, AS_FINALLY;
static const string AS_TRY, AS_CATCH, AS_THROWS, AS_NOEXCEPT, AS_FINALLY;
static const string AS_PUBLIC, AS_PROTECTED, AS_PRIVATE;
static const string AS_CLASS, AS_STRUCT, AS_UNION, AS_INTERFACE, AS_NAMESPACE, AS_EXTERN;
static const string AS_STATIC;

0 comments on commit db69451

Please sign in to comment.
You can’t perform that action at this time.