weggli-rs / weggli

weggli is a fast and robust semantic search tool for C and C++ codebases. It is designed to help security researchers identify interesting functionality in large codebases.
Apache License 2.0
2.32k stars 127 forks source link

can not find problem #26

Open bb33bb opened 2 years ago

bb33bb commented 2 years ago

file content as following

namespace content {
class CONTENT_EXPORT StoragePartitionImpl
    : public StoragePartition,
      public blink::mojom::DomStorage,
      public network::mojom::NetworkContextClient,
      public network::mojom::URLLoaderNetworkServiceObserver {
 public:
 private:  
};
}  // namespace content

following is result

./weggli 'class _{}' C://Users//Administrator//Desktop//test
show noting

# ./weggli 'class CONTENT_EXPORT $a:_{};' C://Users//Administrator//Desktop//test
Error! Query parsing failed: class CONTENT_EXPORT [MISSING ; ]  $a:_{};
# ./weggli 'class CONTENT_EXPORT $a:_{}' C://Users//Administrator//Desktop//test
Error! Query parsing failed: class CONTENT_EXPORT [MISSING ; ]  $a:_{}
# ./weggli 'class $a' C://Users//Administrator//Desktop//test

image

dear bro , is there something wrong? the content is selected from chromium code.

felixwilhelm commented 2 years ago

Thanks for the bug report. I'll take a look

bb33bb commented 2 years ago

may be i think weggli treat CONTENT_EXPORT as the name of class. because CONTENT_EXPORT was red in picture. and in this case, when we wann to make limation of baseClass, may be its a hard work.

Thanks for your reading Master!! wish weggli more better!!