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:
@@ -216,6 +216,8 @@ class MessageBuffer
|
||||
int m_vnet_id;
|
||||
};
|
||||
|
||||
Cycles random_time();
|
||||
|
||||
inline std::ostream&
|
||||
operator<<(std::ostream& out, const MessageBuffer& obj)
|
||||
{
|
||||
|
||||
@@ -53,6 +53,8 @@ struct LinkOrder
|
||||
int m_value;
|
||||
};
|
||||
|
||||
bool operator<(const LinkOrder& l1, const LinkOrder& l2);
|
||||
|
||||
class PerfectSwitch : public Consumer
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -92,6 +92,14 @@ class AddressProfiler
|
||||
int m_num_of_sequencers;
|
||||
};
|
||||
|
||||
AccessTraceForAddress& lookupTraceForAddress(const Address& addr,
|
||||
AddressProfiler::AddressMap&
|
||||
record_map);
|
||||
|
||||
void printSorted(std::ostream& out, int num_of_sequencers,
|
||||
const AddressProfiler::AddressMap &record_map,
|
||||
std::string description);
|
||||
|
||||
inline std::ostream&
|
||||
operator<<(std::ostream& out, const AddressProfiler& obj)
|
||||
{
|
||||
|
||||
@@ -170,4 +170,6 @@ class CacheMemory : public SimObject
|
||||
bool m_resource_stalls;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const CacheMemory& obj);
|
||||
|
||||
#endif // __MEM_RUBY_SYSTEM_CACHEMEMORY_HH__
|
||||
|
||||
@@ -168,4 +168,6 @@ class RubyMemoryControl : public MemoryControl
|
||||
MemCntrlProfiler* m_profiler_ptr;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const RubyMemoryControl& obj);
|
||||
|
||||
#endif // __MEM_RUBY_SYSTEM_MEMORY_CONTROL_HH__
|
||||
|
||||
@@ -100,4 +100,6 @@ class WireBuffer : public SimObject
|
||||
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const WireBuffer& obj);
|
||||
|
||||
#endif // __MEM_RUBY_SYSTEM_WireBuffer_HH__
|
||||
|
||||
Reference in New Issue
Block a user