Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 62ba8e0ff0 | |||
| 57e44e5bc9 | |||
| f39884310d | |||
| 4f05b6f6c0 | |||
| d53655f4f4 | |||
| 959c4304b3 |
@@ -174,7 +174,10 @@ def build_prompt(diff_text: str) -> str:
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
"Review the following git diff. Focus on correctness, regressions, missing validation, "
|
"Review the following git diff. Focus on correctness, regressions, missing validation, "
|
||||||
"build/test issues, and security concerns. "
|
"build/test issues, and security concerns as well as style and usage of c++23. "
|
||||||
|
"Bring to attention any patterns that are generally considered error-prone or hard to maintain. "
|
||||||
|
"Highlight any places where the code could be simplified or made more efficient. "
|
||||||
|
"Provide suggestions for improving readability and maintainability. "
|
||||||
"No need to comment on removed code unless it seems like it would cause a problem. "
|
"No need to comment on removed code unless it seems like it would cause a problem. "
|
||||||
"Do not review the scripts in the scripts directory, as they are not part of the main codebase. "
|
"Do not review the scripts in the scripts directory, as they are not part of the main codebase. "
|
||||||
"Return either 'No issues found.' or a short flat list where each item includes severity, file, and issue.\n\n"
|
"Return either 'No issues found.' or a short flat list where each item includes severity, file, and issue.\n\n"
|
||||||
|
|||||||
+7
-9
@@ -1,15 +1,13 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
const std::string& get_greeting() {
|
|
||||||
return "Hello, world!";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add the number of things.
|
int main()
|
||||||
int add_6(int cx) {
|
{
|
||||||
return 6 + cx;
|
auto the_max_value = 100;
|
||||||
|
int total = 0;
|
||||||
|
for (int v = 0; v < the_max_value; ++v) {
|
||||||
|
total += v;
|
||||||
}
|
}
|
||||||
|
std::cout << "Total: " << total << std::endl;
|
||||||
|
|
||||||
int main() {
|
|
||||||
std::cout << "Hello, world!" << add_6(5) << std::endl;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user