scons: Add warning for missing declarations

This patch enables warnings for missing declarations. To avoid issues
with SWIG-generated code, the warning is only applied to non-SWIG
code.
This commit is contained in:
Andreas Hansson
2013-02-19 05:56:07 -05:00
parent b44e0ce52b
commit 319443d42d
43 changed files with 181 additions and 9 deletions

View File

@@ -32,6 +32,7 @@
#ifndef __BASE_DEBUG_HH__
#define __BASE_DEBUG_HH__
#include <map>
#include <string>
#include <vector>
@@ -110,6 +111,19 @@ class CompoundFlag : public SimpleFlag
void disable();
};
typedef std::map<std::string, Flag *> FlagsMap;
FlagsMap &allFlags();
Flag *findFlag(const std::string &name);
bool changeFlag(const char *s, bool value);
} // namespace Debug
void setDebugFlag(const char *string);
void clearDebugFlag(const char *string);
void dumpDebugFlags();
#endif // __BASE_DEBUG_HH__