Added more login to cscope_db
[vimicxx.git] / src / tests / test_dir_builder.cc
blob170cee9588fb15347c356a135fdfa149da06e044
1 /*******************************************************************************
2 ********************************************************************************
4 Copyright (c) 2008 Ahmed S. Badran
6 Licensed under the FreeBSD License (see LICENSE)
8 Filename: test_dir_builder.cc
9 Description: Test the directory builder.
10 Created: 08/23/2008 10:39:50 PM PDT
11 Author: Ahmed S. Badran (Ahmed B.), ahmed.badran@gmail.com
13 ********************************************************************************
14 *******************************************************************************/
15 #include "tree_builder.h"
16 #include <vector>
17 #include <string>
18 #include "fs_item.h"
19 #include <cstdio>
20 using namespace std;
21 int main(int argc, char** argv)
23 vector<string> tmp, file_list;
24 tree_builder* builder = tree_builder::get_instance();;
25 tmp.push_back(".h");
26 tmp.push_back(".c");
27 tmp.push_back(".cpp");
28 fs_item* tree = builder->build(argv[1], tmp, &file_list);
29 for (int i = 0; i < file_list.size(); ++i) {
30 printf("%s\n", file_list[i].c_str());
32 return 0;