mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Apply clang-format to code base
This commit is contained in:
parent
f37d0be806
commit
ddb0522bbf
2199 changed files with 118692 additions and 114392 deletions
|
@ -10,41 +10,41 @@ namespace Compiler
|
|||
|
||||
class StreamErrorHandler : public ErrorHandler
|
||||
{
|
||||
std::string mContext;
|
||||
std::string mContext;
|
||||
|
||||
friend class ContextOverride;
|
||||
friend class ContextOverride;
|
||||
// not implemented
|
||||
|
||||
StreamErrorHandler (const StreamErrorHandler&);
|
||||
StreamErrorHandler& operator= (const StreamErrorHandler&);
|
||||
StreamErrorHandler(const StreamErrorHandler&);
|
||||
StreamErrorHandler& operator=(const StreamErrorHandler&);
|
||||
|
||||
void report (const std::string& message, const TokenLoc& loc, Type type) override;
|
||||
///< Report error to the user.
|
||||
void report(const std::string& message, const TokenLoc& loc, Type type) override;
|
||||
///< Report error to the user.
|
||||
|
||||
void report (const std::string& message, Type type) override;
|
||||
///< Report a file related error
|
||||
void report(const std::string& message, Type type) override;
|
||||
///< Report a file related error
|
||||
|
||||
public:
|
||||
|
||||
void setContext(const std::string& context);
|
||||
public:
|
||||
void setContext(const std::string& context);
|
||||
|
||||
// constructors
|
||||
|
||||
StreamErrorHandler ();
|
||||
///< constructor
|
||||
StreamErrorHandler();
|
||||
///< constructor
|
||||
};
|
||||
|
||||
class ContextOverride
|
||||
{
|
||||
StreamErrorHandler& mHandler;
|
||||
const std::string mContext;
|
||||
public:
|
||||
ContextOverride (StreamErrorHandler& handler, const std::string& context);
|
||||
StreamErrorHandler& mHandler;
|
||||
const std::string mContext;
|
||||
|
||||
ContextOverride (const ContextOverride&) = delete;
|
||||
ContextOverride& operator= (const ContextOverride&) = delete;
|
||||
public:
|
||||
ContextOverride(StreamErrorHandler& handler, const std::string& context);
|
||||
|
||||
~ContextOverride();
|
||||
ContextOverride(const ContextOverride&) = delete;
|
||||
ContextOverride& operator=(const ContextOverride&) = delete;
|
||||
|
||||
~ContextOverride();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue