Skip to content

Instantly share code, notes, and snippets.

@ishandutta2007
Created December 22, 2022 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishandutta2007/ae10a6b10fe3c94bf8e248a21dbc73d3 to your computer and use it in GitHub Desktop.
Save ishandutta2007/ae10a6b10fe3c94bf8e248a21dbc73d3 to your computer and use it in GitHub Desktop.
/Library/Developer/CommandLineTools/usr/include/c++/v1/variant:1346:60: note: candidate template ignored: invalid explicitly-specified argument for template parameter '_Ip'
brew unlink z3
brew tap-new Z3Prover/z3
brew extract --version='4.5.0' z3 Z3Prover/z3
brew install z3@4.5.0
brew unlink llvm
brew tap-new llvm/llvm-project
brew extract --version='13.0.0' llvm llvm/llvm-project
brew install llvm@13.0.0
ls /usr/local/Homebrew/Library/Taps/llvm/homebrew-llvm-project/
cd /usr/local/Homebrew/Library/Taps/llvm/homebrew-llvm-project/
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/75821432/d857365e-c94e-4312-a21f-d3cdb53e8a82?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-
@ishandutta2007
Copy link
Author

Traceback (most recent call last):
File "../../CppAmalgamator/comment_out_function_libclang.py", line 47, in
comment_out_function(input_filename, output_filename, function_name)
File "../../CppAmalgamator/comment_out_function_libclang.py", line 34, in comment_out_function
visit(tu.cursor)
File "../../CppAmalgamator/comment_out_function_libclang.py", line 31, in visit
visit(child)
File "../../CppAmalgamator/comment_out_function_libclang.py", line 31, in visit
visit(child)
File "../../CppAmalgamator/comment_out_function_libclang.py", line 28, in visit
output_lines.append(tu.get_extent(node.extent.start, node.extent.end).spelling)
File "/Users/ishandutta2007/.pyenv/versions/3.8.0/lib/python3.8/site-packages/clang/cindex.py", line 3037, in get_extent
f = self.get_file(filename)
File "/Users/ishandutta2007/.pyenv/versions/3.8.0/lib/python3.8/site-packages/clang/cindex.py", line 3004, in get_file
return File.from_name(self, filename)
File "/Users/ishandutta2007/.pyenv/versions/3.8.0/lib/python3.8/site-packages/clang/cindex.py", line 3192, in from_name
return File(conf.lib.clang_getFile(translation_unit, fspath(file_name)))
TypeError: expected str, bytes or os.PathLike object, not SourceLocation

@ishandutta2007
Copy link
Author

Traceback (most recent call last):
File "../../CppAmalgamator/comment_out_function_libclang.py", line 64, in
comment_out_function(input_filename, output_filename, function_name)
File "../../CppAmalgamator/comment_out_function_libclang.py", line 51, in comment_out_function
visit(tu.cursor)
File "../../CppAmalgamator/comment_out_function_libclang.py", line 31, in visit
visit(child)
File "../../CppAmalgamator/comment_out_function_libclang.py", line 31, in visit
visit(child)
File "../../CppAmalgamator/comment_out_function_libclang.py", line 28, in visit
output_lines.append(tu.get_extent(node.extent.start.start, node.extent.end.end).spelling)
AttributeError: 'SourceLocation' object has no attribute 'start'

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