Skip to content

Commit adda3c7

Browse files
committed
writer-json: renamed from json-writer
All modules for output format writers now have the `writer-` prefix.
1 parent 55b2dd7 commit adda3c7

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ add_library(cs STATIC
7272
cwe-name-lookup.cc
7373
deflookup.cc
7474
instream.cc
75-
json-writer.cc
7675
parser.cc
7776
parser-common.cc
7877
parser-cov.cc
@@ -83,6 +82,7 @@ add_library(cs STATIC
8382
version.cc
8483
writer.cc
8584
writer-html.cc
85+
writer-json.cc
8686
)
8787

8888
# link cslib.a and boost libraries

src/csdiff-core.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include "cswriter.hh"
2323
#include "deflookup.hh"
24-
#include "json-writer.hh"
24+
#include "writer-json.hh"
2525

2626
#include <memory>
2727

src/csgrep.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
#include "abstract-filter.hh"
2222
#include "csfilter.hh"
2323
#include "cswriter.hh"
24-
#include "json-writer.hh"
2524
#include "parser-common.hh"
2625
#include "regex.hh"
2726
#include "version.hh"
27+
#include "writer-json.hh"
2828

2929
#include <cstdlib>
3030
#include <fstream>

src/cslinker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
#include "cwe-mapper.hh"
2222
#include "deflookup.hh"
2323
#include "instream.hh"
24-
#include "json-writer.hh"
2524
#include "parser-gcc.hh"
2625
#include "version.hh"
26+
#include "writer-json.hh"
2727

2828
#include <boost/program_options.hpp>
2929
#include <boost/property_tree/ini_parser.hpp>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* along with csdiff. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
#include "json-writer.hh"
20+
#include "writer-json.hh"
2121

2222
#include "abstract-tree.hh"
2323
#include "regex.hh"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* along with csdiff. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
#ifndef H_GUARD_JSON_WRITER_H
21-
#define H_GUARD_JSON_WRITER_H
20+
#ifndef H_GUARD_WRITER_JSON_H
21+
#define H_GUARD_WRITER_JSON_H
2222

2323
#include "writer.hh"
2424

@@ -41,4 +41,4 @@ class JsonWriter: public AbstractWriter {
4141
std::unique_ptr<Private> d;
4242
};
4343

44-
#endif /* H_GUARD_JSON_WRITER_H */
44+
#endif /* H_GUARD_WRITER_JSON_H */

src/writer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
#include "cswriter.hh"
2323
#include "instream.hh"
24-
#include "json-writer.hh"
2524
#include "regex.hh"
2625
#include "writer-html.hh"
26+
#include "writer-json.hh"
2727

2828
// /////////////////////////////////////////////////////////////////////////////
2929
// implementation of AbstractWriter

0 commit comments

Comments
 (0)