Kaydet (Commit) 93f69ad7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wheader-hygiene

Change-Id: Icac29e4f433b1e72603e52a0561e60cb8a7cfdef
üst 703009d0
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include "collectdircontent.hxx" #include "collectdircontent.hxx"
using namespace std;
PathFilePair IncludesCollection::split_path(const string& filePath) { PathFilePair IncludesCollection::split_path(const string& filePath) {
string sepU = "/"; string sepU = "/";
string sepW = "\\"; string sepW = "\\";
......
...@@ -17,22 +17,20 @@ ...@@ -17,22 +17,20 @@
#include <iostream> #include <iostream>
using namespace std; typedef std::set<std::string> DirContent;
typedef std::map<std::string, DirContent> DirMap;
typedef set<string> DirContent;
typedef map<string, DirContent> DirMap;
typedef DirMap::value_type EntriesPair; typedef DirMap::value_type EntriesPair;
typedef pair<string, string> PathFilePair; typedef std::pair<std::string, std::string> PathFilePair;
struct IncludesCollection { struct IncludesCollection {
private: private:
DirMap allIncludes; DirMap allIncludes;
PathFilePair split_path(const string& filePath); PathFilePair split_path(const std::string& filePath);
void add_to_collection(const string& dirPath); void add_to_collection(const std::string& dirPath);
public: public:
bool exists(string filePath); bool exists(std::string filePath);
}; };
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment