8000 Allow a way to give an output folder to -enable-clang-static-analyzer · Issue #537 · oclint/oclint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow a way to give an output folder to -enable-clang-static-analyzer #537

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

Open
pocc opened this issue Apr 20, 2019 · 3 comments
Open

Allow a way to give an output folder to -enable-clang-static-analyzer #537

pocc opened this issue Apr 20, 2019 · 3 comments

Comments

@pocc
Copy link
pocc commented Apr 20, 2019

Issue Summary

Reopening #330 as it is still a problem

Environment

bash-5.0$ oclint --version
LLVM (http://llvm.org/):
LLVM version 5.0.0svn-r313528
Optimized build.
Default target: x86_64-apple-darwin18.5.0
Host CPU: haswell

OCLint (http://oclint.org/):
OCLint version 0.13.
Built Sep 18 2017 (08:58:40).

oclint installed via homebrew

Reproduction Steps

oclint -enable-clang-static-analyzer /path/to/file.c will save a plist named file.plist in the current directory. This can be partially avoided by using cd /tmp; <oclint command above>; cd -, but this is kludgy.

Expected Behavior

Expected behavior is to not create detritus in working directories (or use /tmp or similar for such purposes).

Actual Behavior

plist file is saved in a working directory

@ryuichi-assistant
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment.

@pocc
Copy link
Author
pocc commented Dec 29, 2020

I have verified that this is still an issue on v20.11 for Ubuntu 20.20. This is the temp.c that I am using

int main() {int i;}

With command ./oclint -enable-clang-static-analyzer temp.c

This is the generated temp.plist in the same directory

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
 <key>clang_version</key>
<string>clang version 11.0.0 (https://github.com/llvm/llvm-project.git 0160ad802e899c2922bc9b29564080c22eb0908c)</string>
 <key>diagnostics</key>
 <array>
 </array>
 <key>files</key>
 <array>
 </array>
</dict>
</plist>

@pocc
Copy link
Author
pocc commented Mar 24, 2021

As far as I'm aware, this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0