Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create error #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-in
llvm-${LLVM_VERSION}-dev \
llvm-${LLVM_VERSION}-tools

RUN mkdir -p /opt/llvm; git clone https://github.com/llvm/llvm-project.git /opt/llvm/source; cd /opt/llvm/source; git checkout llvmorg-${LLVM_TAG}
RUN mkdir -p /opt/llvm; git clone https://github.com/llvm/llvm-project.git /opt/llvm/source && cd /opt/llvm/source; git checkout llvmorg-${LLVM_TAG}
RUN git clone https://github.com/rshariffdeen/clang-tools.git /opt/llvm/source/clang-tools-extra/clang-tools; cd /opt/llvm/source/clang-tools-extra/clang-tools; git checkout llvm-${LLVM_VERSION}
RUN echo "add_subdirectory(clang-tools)" >> /opt/llvm/source/clang-tools-extra/CMakeLists.txt
RUN mkdir /opt/llvm/build; cd /opt/llvm/build; cmake -G Ninja /opt/llvm/source/llvm -DCMAKE_BUILD_TYPE=Release -DCMAKE_ENABLE_ASSERTIONS=OFF -DLLVM_ENABLE_WERROR=OFF \
Expand Down
7 changes: 6 additions & 1 deletion app/tools/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,15 @@ def find_source_file(diff_file_list, project, log_file, file_extension):


def iterate_path(source_path, project, file_extension, log_file):
regex = None
file_name = source_path.split("/")[-1][:-2]
source_dir = source_path[:str(source_path).find(file_name)]
source_dir = source_dir.replace(values.CONF_PATH_A, "")
regex = file_name
if regex is None:
regex = file_name
else:
regex = regex + "\|" + file_name

find_files(project.path, file_extension, log_file, regex)

while os.stat(log_file).st_size == 0:
Expand Down