Zeus C/C++ Auto-complete Using Clang
Posted: Sun Nov 29, 2015 1:33 am
The latest Zeus beta release adds C/C++ autocomplete, code navigation and code reformatting by using Clang.
The latest beta can be found here: http://www.zeusedit.com/z300/zeus-beta.zip
Auto-completion
Consider this example of code:
With an autocomplete trigger at the cursor location show will result in the auto-completion shown below:
Code Formatting
The beta also includes a macro that will re-format a marked region of code using the clang-format utility.
As an example consider code that looks like this:
By marking that region of code and running the macro will result in that code being reformatted as shown below:
Code Navigation
The Zeus beta also includes a macro that provides Clang driven code navigation.
Cheers Jussi
The latest beta can be found here: http://www.zeusedit.com/z300/zeus-beta.zip
Auto-completion
Consider this example of code:
Code: Select all
class Person {
public:
const int age() { return 26; }
const char *fist() { return "John"; }
const char *last() { return "Smith"; }
}
void Test() {
Person person;
person.|
}
Code Formatting
The beta also includes a macro that will re-format a marked region of code using the clang-format utility.
As an example consider code that looks like this:
Code: Select all
class Person {
public:
const int age() {
return 26; }
const char *fist()
{
return "John"; }
const char *last() {
return "Smith"; }
}
Code: Select all
class Person {
public:
const int age() { return 26; }
const char *fist() { return "John"; }
const char *last() { return "Smith"; }
}
The Zeus beta also includes a macro that provides Clang driven code navigation.
Cheers Jussi