tinycodinglm / lang /clang002.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 15)
b27bfb3 verified
|
Raw History Blame Contribute Delete
1.12 kB
deepseek-harness trace
System You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing c...

You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies.

User

What are common Clang AST matchers?

Assistant
cpp
functionDecl()                          // any function
functionDecl(hasName("main"))            // named main
functionDecl(isPublic())                 // public access
stmt(hasDescendant(callExpr()))         // contains call
binaryOperator(hasOperatorName("="))    // assignment
varDecl(hasType(asString("int")))        // int variable
hasType(pointerType())                  // any pointer