Remove redundant 'inline' keywords from definitions

Also add checks to t/t_dist_cppstyle
This commit is contained in:
Geza Lore
2022-09-16 15:52:25 +01:00
parent 0c70a0dcbf
commit 38a8d7fb2e
45 changed files with 305 additions and 309 deletions
+5 -7
View File
@@ -247,7 +247,11 @@ public:
// OPERATORS
void v3errorEnd(std::ostringstream& str, const string& extra = "");
void v3errorEndFatal(std::ostringstream& str) VL_ATTR_NORETURN;
void v3errorEndFatal(std::ostringstream& str) VL_ATTR_NORETURN {
v3errorEnd(str);
assert(0); // LCOV_EXCL_LINE
VL_UNREACHABLE
}
/// When building an error, prefix for printing continuation lines
/// e.g. information referring to the same FileLine as before
string warnMore() const;
@@ -286,10 +290,4 @@ private:
};
std::ostream& operator<<(std::ostream& os, FileLine* fileline);
inline void FileLine::v3errorEndFatal(std::ostringstream& str) {
v3errorEnd(str);
assert(0); // LCOV_EXCL_LINE
VL_UNREACHABLE
}
#endif // Guard