Skip to content

Commit 680028a

Browse files
committed
clang module is part of semantic now
1 parent 7eb64b3 commit 680028a

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

bear/src/output/formats.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//! - The semantic database format. (Internal format of this project.)
88
//! - The execution event database format. (Internal format of this project.)
99
10-
use super::{clang, json};
11-
use crate::{intercept, semantic};
10+
use super::json;
11+
use crate::{intercept, semantic, semantic::clang};
1212
use serde_json::de::IoRead;
1313
use serde_json::StreamDeserializer;
1414
use std::io;
@@ -145,7 +145,7 @@ impl FileFormat<intercept::Event> for ExecutionEventDatabase {
145145
#[cfg(test)]
146146
mod test {
147147
mod compilation_database {
148-
use super::super::clang::{Entry, EntryError};
148+
use super::super::semantic::clang::{Entry, EntryError};
149149
use super::super::JsonCompilationDatabase as Sut;
150150
use super::super::{Error, FileFormat};
151151
use serde_json::error::Category;

bear/src/output/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//! The `OutputWriter` enum represents the main entry point for writing the output.
1111
//! The input of the `OutputWriter` is a stream of `semantic::CompilerCall` instances.
1212
13-
mod clang;
1413
mod formats;
1514
mod json;
1615
mod writers;

bear/src/output/writers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-3.0-or-later
22

3-
use super::clang::{DuplicateEntryFilter, Entry, EntryConverter};
43
use super::formats::{FileFormat, JsonCompilationDatabase, JsonSemanticDatabase};
4+
use crate::semantic::clang::{DuplicateEntryFilter, Entry, EntryConverter};
55
use crate::{config, semantic};
66
use anyhow::Context;
77
use std::{fs, io, path};
File renamed without changes.
File renamed without changes.
File renamed without changes.

bear/src/semantic/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//! We are interested in the compiler passes, because those are the
1111
//! ones that are relevant to build a JSON compilation database.
1212
13+
pub mod clang;
1314
pub mod interpreters;
1415
pub mod transformation;
1516

0 commit comments

Comments
 (0)