Giter VIP home page Giter VIP logo

bbuncrustifyplugin-xcode's Introduction

BBUncrustifyPlugin-Xcode

Xcode plugin to format code using Uncrustify or ClangFormat.

menu

preferences

Requirements

Xcode 6.0+ on OS X 10.10+.

PS: This fork works with Xcode 3.

Installation

Compiled Version

  • The easiest way to install the plugin is to download the lastest release.
  • Unzip and copy UncrustifyPlugin.xcplugin to ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins.
  • Relaunch Xcode after the copy.

Script Version

Run on Terminal:

curl -SL https://raw.githubusercontent.com/benoitsan/BBUncrustifyPlugin-Xcode/master/install.sh | sh

Build from Source

  • Build the Xcode project. The plug-in will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins.

  • Relaunch Xcode.

To uninstall, just remove the plugin from ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins and restart Xcode.

How does it work?

All the commands are in the menu Edit > Format Code.

  • Use the menu Format Selected Files to format the selected items in the project navigator.

  • Use the menu Format Active File to format the source file actually opened in the editor.

  • Use the menu Format Selected Lines to format the selected source code (multiple selection is supported). The selection is automatically extended in full lines. If the selection is empty, it uses the line under the cursor.

  • Use the menu Edit Configuration to edit the formatter configuration in an external editor.

  • Use the menu BBUncrustifyPlugin Preferences to change the plugin preferences.

Tips

When the code is reformated, the modifications are recorded in the undo. So undo reverts the modifications.

The Preferences window contains detailed informations to customize the formatter settings.

You can create keyboard shortcuts for the menu items in the Keyboard Preferences of OS X System Preferences.

Use the menu Edit > Format Code > View Log to identify issues when formatting.

The plugin includes binaries for ClangFormat and Uncrustify. To use your own version, install the binary to: /usr/local/bin/clang-format or /usr/bin/clang-format for ClangFormat, /usr/local/bin/uncrustify or /usr/bin/uncrustify for Uncrustify.

When formatting a code selection, keep in mind that formatting selected lines can fail depending of the selected scope.

  • Uncrustify assumes the first selected line is indented correctly.

  • ClangFormat takes in account the scope around the selection.

Style configuration

To create the initial configuration file, you can use the button "Create Configuration File" in the preferences window.

The configuration file must be located in the current directory or any parent directories of the source file. The search is started from the current directory. The plugin looks for the following file name patterns, in the order priority shown:

  • For ClangFormat:

    1. _clang-format
    2. .clang-format
  • For Uncrustify:

    1. uncrustify.cfg
    2. _uncrustify.cfg
    3. .uncrustify.cfg
    4. .uncrustifyconfig
    5. In addition: your Home Folder and ~/.uncrustify/uncrustify.cfg

So lets say you have a project with subproject1 (team1) and subproject2 (team2), you can use a structure like that:

root project folder
	| subproject1
		| config_file -> team1

	| subproject2
		| config_file -> team2

ClangFormat: Predefined style or Custom style file

When using ClangFormat, you can use a predefined non editable style or a custom file. The plugin will use the style defined in the preferences window in the "Clang Style" section: LLVM, Google, Chromium, Mozilla, WebKit, or, Custom File.

Post Formatting options

In the plugin preferences, you can activate some post formatting operations:

Perform Xcode syntax-aware indenting

When enabled, the plugin re-indents the code using Xcode. By default, this feature is not selected because it overwrites the indentation performed by the formatter.

Indent whitespace-only lines to code level

Both ClangFormat and Uncrustify always trim whitespace-only lines. When enabled, the plugin re-indents empty lines to the code level. This option is disabled if "Including Whitespace-only lines" is enabled in Xcode preferences (Xcode Preferences > Text Editing Tab > Editing Panel > While Editing).

Some Objective-C Style Guides

Using Uncrustify:

Some Style Guides:

Creator

Benoît Bourdon (@benoitsan). Thanks to the Contributors!

Additional contributors actually not listed here: Dominik Pich.

License

BBUncrustifyPlugin is available under the MIT license. See the LICENSE file for more info.

bbuncrustifyplugin-xcode's People

Contributors

alexruperez avatar amarcadet avatar andr3a88 avatar bbodenmiller avatar benoitsan avatar bryant1410 avatar daij-djan avatar danydev avatar darrarski avatar ericforget avatar guykogus avatar hsarret avatar ignazioc avatar ishikawa avatar jessthrysoee avatar kejinlu avatar markeissler avatar monowerker avatar readmecritic avatar robowen5mac avatar sethfri avatar sugarmo avatar tonyarnold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bbuncrustifyplugin-xcode's Issues

The plugin Uncrustify results differ for blank lines when from running on the command line.

The the following code uncrusifies differently:

- (void)foo
{
    NSString *bar = @"hello";

    NSLog(@"%@", bar);
}

(apparently the 4 space indent for the blank line is being eaten by the md)

The plugin's uncrustification keeps the 4 space indent for the blank line, while running uncrustify from the command line removes the 4 space indent for the blank line.

To make sure I am using the same uncrustify command and config file, I cd to ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/Resources and ran ./uncrustify -c ./uncrustify.cfg /pathToFile/foo.m

The diff was

26c26
<     

---
> 

The uncrustify config file I used can be found here: https://gist.github.com/m2orris/5297267


I found this because my git pre-commit hooks puked on me during check in, all blank lines had issues.

Note to anyone who uses the plugin and git pre-commit hooks to uncrustify code. Make sure you are using the same uncrustify binary and configuration file or the uncrustify results could be inconsistent.

I achieve this by a post build step that creates symbolic links in the ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/Resources to the the uncrustify binary and config file used in the git pre-commit hooks.

cd ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin/Contents/Resources
mv uncrustify uncrustify.orig
ln -s /usr/local/bin/uncrustify uncrustify
mv uncrustify.cfg uncrustify.cfg.orig
ln -s ~/dist/Xcode/uncrustify/config/uncrustify_obj_c.cfg uncrustify.cfg

Objective-C: typedef NS_ENUM

Hi
With the modern objective-c specifiy by Apple an enum must be declare like this:

typedef NS_ENUM (NSUInteger, ArrowSide) {
  ArrowSideNone,
  ArrowSideTop,
  ArrowSideBottom,
  ArrowSideRight,
  ArrowSideLeft
};
typedef NS_ENUM (NSUInteger, ArrowPosition) {
  ArrowPositionMiddle,
  ArrowPositionTop,
  ArrowPositionBottom
};

But uncrustify apply a wrong format it must be like this:

typedef NS_ENUM(NSUInteger, ArrowSide) {
  ArrowSideNone,
  ArrowSideTop,
  ArrowSideBottom,
  ArrowSideRight,
  ArrowSideLeft
};

typedef NS_ENUM(NSUInteger, ArrowPosition) {
  ArrowPositionMiddle,
  ArrowPositionTop,
  ArrowPositionBottom
};

It's like uncrustify doesn't recognize the new enum format specify by Apple.
I use Xcode 5.1.1 and the plugin BBUncrustifyPlugin install with Alcatraz a package manager for Xcode

UncrustifyPlugin selected Group

hi,

I have lot of files need to be uncrustified.

So far, I select the files one by one and then use uncrustify selected files function.

Could you please make this function to apply selected groups as well.

very thanks!

uncrustify-plugin

Undo formatting will cause the content be 'select all' and jump to top

Problem:
Undo formatting will cause the content be 'select all' and jump to top

Repeat:

  1. Format the file
  2. Undo

Expected:
Changes from formatting could be undo.
The cursor/focus stay on the same position.

Results:
Changes from formatting could be undo, which is good.
But the file content will be all selected, and jump to the top.

Environment:
Xcode 5.0.2
BBUncrustifyPlugin-Xcode 2.0.1

Format all open files

Hi. I would like to have an option to format all open files, alongside the ones to format the active or the selected ones.

Performing a syntax-aware indenting make uncrustify go wrong.

Like option indent_align_assign

Align continued statements at the '='.
If FALSE or the '=' is followed by a newline, the next line is indent one tab.

Turn it off and uncrustify this code

CFUUIDRef uuid = 
  CFUUIDCreate(NULL);

should become

CFUUIDRef uuid =
    CFUUIDCreate(NULL);

but with this syntax-aware indenting option, it become

CFUUIDRef uuid = 
CFUUIDCreate(NULL);

Because the code had been re-indented again by Xcode.

It's wrong, because it break the uncrustify rule.

In fact if the user like to use Xcode's indenting, just use it simply with Ctrl + I, it's not a part of job of this plugin.

@benoitsan Please consider dopping this feature.

A warning message when build

2014-07-04 20:39:31.615 Xcode[32330:303] [MT] DVTPlugInManager: Required plug-in compatibility UUID A2E4D43F-41F4-4FB9-BB94-7177011C9AED for DebuggerUI.ideplugin (com.apple.dt.dbg.DebuggerUI) not present
2014-07-04 20:39:31.864 Xcode[32330:303] [MT] DVTAssertions: Warning in /SourceCache/DVTFrameworks/DVTFrameworks-5074/DVTFoundation/PlugInArchitecture/PlugInManager/DVTPlugInManager.m:246
Details: Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider
Object: <DVTPlugInManager: 0x600000341b80>
Method: -extensionPointWithIdentifier:
Thread: <NSThread: 0x600000067380>{name = (null), num = 1}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2014-07-04 20:39:31.902 Xcode[32330:303] [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-5085/IDEFoundation/Initialization/IDEInitialization.m:312
Details: Xcode failed its initial plug-in scan, error = Error Domain=DVTPlugInErrorDomain Code=7 "Missing required components." UserInfo=0x6080002e1480 {NSLocalizedFailureReason=Components required by Xcode are missing or damaged., NSLocalizedRecoverySuggestion=Reinstall the Xcode Tools., DVTAffectedPlugInsErrorKey=(
{
DVTPlugInIdentifierErrorKey = "com.apple.dt.dbg.DebuggerUI";
}
), NSLocalizedDescription=Missing required components.}
Function: BOOL _IDEInitializePlugInManager(IDEInitializationOptions, NSError *__autoreleasing *)
Thread: <NSThread: 0x600000067380>{name = (null), num = 1}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

Preference window fails to open in Xcode 6.0.1

Nothing happens when I try to open the BBUncrustifyPlugin Pref window using the appropriate xcode menu. The following in the console line appears in the console:
9/23/14 8:03:06.125 PM Xcode[69435]: -[XCFPreferencesWindowController loadWindow]: failed to load window nib file '(null)'.
I have tried to remove and reinstall, but no luck. This used to work just fine in the various Xcode beta.

Thx

Xcode 6.0b2

Has anyone made this work in Xcode 6.0b2?

XCode 5.1 update?

Well, is not working for Xcode 5.1 T_T

It's possible to have an update for this plugin for the new version of Xcode?

Thanks

filename expansion $(filename) in header & footer files

If one uses filename expansion, $(filename) in header & footer files, see uncrustify configuration attributes: cmt_insert_file_header, cmt_insert_file_footer, cmt_insert_func_header, cmt_insert_class_header, and cmt_insert_oc_msg_header the file name appears to be a unique identifier instead of the filename.

Objective-C: Indent switch case

Hi
I have a switch case on my Objective-C code like this one:

 switch (pCode) {
    case 0: 
    {
       // My code here
    }
      break;

    case 1: 
    {
       // My code here
    }
      break;

    default:
      break;
  }

I want to align case block like this:

 switch (pCode) {
    case 0: 
      {
         // My code here
      }
      break;

    case 1: 
      {
         // My code here
      }
      break;

    default:
      break;
  }

I tried to use indent_switch_case = 2 to align the case but it doesn't work
I use Xcode 5.1.1 and the plugin BBUncrustifyPlugin install with Alcatraz a package manager for Xcode

BBUncrustify always crashes when trying to indent the following code.

First of all, sorry for not providing a test case.

When I save this file (thus triggering uncrustify) I always get a crash:

//
//  WSTest.h
//  Test
//
//  Created by Nicolas Goles on 3/13/14.
//  Copyright (c) 2014 Goles. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface WSTest : NSObject
{

}
@end

I have a crash.log for you though... hoping it helps.

Xcode 5.1 compatibility

Xcode 5.1 seems to have broken the plug-in for me. Is this just me?

  • I tried re-installing, but that didn't help.
  • I installed a different plug-in without this issue this morning. (I was trying to test to see if something had broken/changed in the plug-in architecture.)
  • I looked through the release notes of Xcode for anything plug-in related.

Frankly, I know little about the plug-in architecture of Xcode but I figured it would be worth creating an issue just to verify if this was a known issue.

xcode not formatting code

I know this one has been raised before but I think there still might be an issue here. I'm using xcode 5.1 with BBUncrustifyPlugin-Xcode 2.0.3 and I have found that UncrustifyX will happily find my configuration file in the root of the project directory (or the various home directory options) if it's named .uncrustifyconfig or uncrustify.cfg but my source files are in a sub directory and never get formatted unless I put a configuration file in every directory. This seems to contradict the instructions.

Seems to me that the logic in UncrustifyX for finding config files might be different from the plugin, dunno.

It would be very handy if the preferences page stated which configuration files it had found and which it was going to use on a given project.

FYI If I use Clang instead of uncrustify it all works nicely.

BBUncrustifyPlugin for OS X 10.6.8

Finally finished working on my fork which is compatible with Xcode 3 (3.2.6). Maybe you can add a link to my fork for those who are still using Xcode 3.

While I was porting, I noticed a couple of things:

BBUncrustify.m

+ (NSString *)uncrustifyCodeFragment:(NSString *)codeFragment options:(NSDictionary *)options

There is no Release build, only Debug build. Why? If you add a Release build, you could wrap NSLog(@"uncrustify configuration file: %@", configurationFileURL); that is included in the above method inside a preprocessor DEBUG for no logging for a Release build.

BBXcode.m

+ (BOOL)uncrustifyCodeOfDocument:(PBXSourceFileDocument *)document inWorkspace:(IDEWorkspace *)workspace

There is no [textStorage beginEditing] and corresponding [textStorage endEditing] included in above method. Basically to improve performance, you could make sure that [textStorage replaceCharactersInRange:NSMakeRange(0, textStorage.string.length) withString:uncrustifiedCode withUndoManager:[document undoManager]] & [BBXcode normalizeCodeAtRange:NSMakeRange(0, textStorage.string.length) document:document] are included within the beginEditing & endEditing calls.

I also stumbled on something strange, NSString *originalString = textStorage.string; was returning a pointer reference, not a copy of the string. BOOL codeHasChanged was always returning NO. I solved the issue by changing textStorage.string to [NSString stringWithString:textStorage.string].

Semicolon (strangely) removed

When I try to format using an enum declared this way the semicolon is removed. I use uncrustify as formatter and my config file is https://gist.github.com/orlandoaleman/5705746. I've tested formatting with UncrustifyX gui and it goes right.

typedef NS_ENUM (NSUInteger, InvaderType) {
    InvaderTypeA,
    InvaderTypeB,
    InvaderTypeC
};

Environment:
Xcode 5.0.2
BBUncrustifyPlugin-Xcode 2.0.1

Format on Save file type filter

Format on save is a nice feature. I no longer need to remember when to format the files or dedicate a shortcut for it. However, since I use XCode for more than C-like languages, the format on save sometimes garbles the files I write. For example, when format-on-save is on, I cannot use XCode to edit Makefiles in my project.

Because of this, I currently disable format-on-save. I wish that a filetype filter can be added such that only C/C++/Objective C files are formatted on save.

Xcode 5.0 Beta 3

It appears things stopped working with Xcode 5.0 Beta 3, was working fine in Beta 2. Anyone else seeing this?

yosemite + Xcode 6.0 GM + UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Extension Xcode.IDEKit.CmdHandler.ShowViewDrawing

I have the latest code - cleaned project - compile and it's crashing. any ideas on how to fix?

2014-09-15 09:21:43.010 Xcode[36790:4928625] [MT] DVTAssertions: UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Extension Xcode.IDEKit.CmdHandler.ShowViewDrawing class 'DBGMenuController' not found for required key 'handlerClass'
UserInfo: {
DVTExtensionClassNameErrorKey = DBGMenuController;
DVTExtensionIdentifierErrorKey = "Xcode.IDEKit.CmdHandler.ShowViewDrawing";
DVTPlugInExecutablePathErrorKey = "/Applications/Xcode.app/Contents/PlugIns/DebuggerUI.ideplugin";
DVTPlugInIdentifierErrorKey = "com.apple.dt.dbg.DebuggerUI";
}
Hints: None
2014-09-15 09:21:43.824 Xcode[36790:4928625] [MT] DVTAssertions:
Backtrace:
0 0x00007fff8e438bd4 exceptionPreprocess (in CoreFoundation)
1 0x00000001001e6184 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 0x00007fff8d6886de objc_exception_throw (in libobjc.A.dylib)
3 0x000000010004ebd7 -[DVTExtension _adjustClassAttribute:forKey:inParameterData:](in DVTFoundation)
4 0x000000010004e633 -[DVTExtension _adjustClassReferencesInParameterData:usingSchema:](in DVTFoundation)
5 0x00000001000d210c -[DVTExtension _fireExtensionFault:](in DVTFoundation)
6 0x00000001000d1a75 __63-[DVTExtension _valueForKey:inParameterData:usingSchema:error:]_block_invoke (in DVTFoundation)
7 0x0000000101fa7e53 _dispatch_client_callout (in libdispatch.dylib)
8 0x0000000101fa91c1 _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
9 0x000000010021cdfd DVTDispatchBarrierSync (in DVTFoundation)
10 0x000000010001fbc4 -[DVTDispatchLock performLockedBlock:](in DVTFoundation)
11 0x00000001000d1851 -[DVTExtension _valueForKey:inParameterData:usingSchema:error:](in DVTFoundation)
12 0x00000001000d1c44 -[DVTExtension valueForKey:error:](in DVTFoundation)
13 0x00000001014163de __55+[IDECommandManager cacheCommandDefinitionsAndHandlers]_block_invoke (in IDEKit)
14 0x0000000101fa7e53 _dispatch_client_callout (in libdispatch.dylib)
15 0x0000000101fa7e3e dispatch_once_f (in libdispatch.dylib)
16 0x00000001011cfa60 +[IDECommandManager cacheCommandDefinitionsAndHandlers](in IDEKit)
17 0x00000001011cf054 -[IDEApplicationController applicationWillFinishLaunching:](in IDEKit)
18 0x00007fff8e3f50dc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER
(in CoreFoundation)
19 0x00007fff8e2e6634 _CFXNotificationPost (in CoreFoundation)
20 0x00007fff8cee29b1 -[NSNotificationCenter postNotificationName:object:userInfo:](in Foundation)
21 0x00000001001c6e6e -[NSNotificationCenter(DVTNSNotificationCenterAdditions) _dvt_postNotificationName:object:userInfo:](in DVTFoundation)
22 0x00007fff83c32797 -[NSApplication finishLaunching](in AppKit)
23 0x000000010074a665 -[DVTApplication finishLaunching](in DVTKit)
24 0x00007fff83c32261 -[NSApplication run](in AppKit)
25 0x00007fff83c1d834 NSApplicationMain (in AppKit)
26 0x00007fff88fe45c9 start (in libdyld.dylib)
27 0x0000000000000003

Garbage Collection is deprecated: Convert to Obj-C ARC

Loading the project into Xcode 4.6.2, I get the warning:

Garbage Collection is deprecated; use the "Convert to Objective-C ARC" menu command to switch to Automatic Reference Counting

If you do as suggested

“Edit” -> “Refactor” -> “Convert to Objective-C ARC”

we reveal the real underlying problem of converting to ARC: that is,

Linked dylibs built for GC-only but object files built for retain/release for architecture x86_64

Can we realistically get rid of the warning, or is this something that cannot be changed because of the frameworks this project depends on?

Won't format active file

For some reason ability to format active file or selected files doesn't work. If I highlight lines and highlight selected lines it does work.

Not sure what I changed that made this happen. I tried removing and reinstalling plugin but it did not fix the problem.

Any help appreciated!

Format Active File Error

There is an error as blew when I'm trying to format a large .mm file(about 1700 lines).

Clang Formatter error:
Task was terminated because the time-out was reached.

And I select some lines to format(just a few lines), the same error appear.

The setting is:
Formatter : Clang
ClangStyle: Chromium

2.0 I can't edit or Choose any config

Hi, the preferences only give me the option of creating a new config.
but it is not used / no config is found

I cannot edit any configFile either

Need some help porting to 10.6

I am currently working on a fork which is compatible with Xcode 3 (3.2.6) capable of running under 10.6 (10.6.8). It is almost done except for one function:

The function "NSArray * BBMergeContinuousRanges(NSArray *ranges", uses enumerateRangesUsingBlock which isn't available under 10.6. Although I have been coding for a while I can't seem to write an alternative function compilable on 10.6, can you help me out?

Can you provide me with an alternative "NSArray * BBMergeContinuousRanges(NSArray *ranges" that compiles on 10.6?

Objective-C: Align block

Hi
This my case:

[self myMethodWithBlock1:^(NSString *pParam1,NSString *pParam2) {
  // My code here
}
                  Block2:^(NSString *pParam1,NSString *pParam2) {
                    // My code here
                  }

What is the setting to align the blocks like this:

[self myMethodWithBlock1:^(NSString *pParam1,NSString *pParam2) {
                    // My code here
                  }
                  Block2:^(NSString *pParam1,NSString *pParam2) {
                    // My code here
                  }

I use Xcode 5.1.1 and the plugin BBUncrustifyPlugin install with Alcatraz a package manager for Xcode

Impossible to define hotkeys for uncrustify commands

It is currently not possible to assign key bindings to the uncrustify commands as they do not appear in the keybindings preferences.

Note: there's no possibility in 10.8 system preferences to add application specific bindings, nor does any of the uncrustify commands appear in the existing list.

Format on build project?

When build the project, also saves it, but it not formatting.
Might you add a configuration to format the project when it is generated?
Tanks

Do not override to Objective-C

I noticed you are setting the language override function to always do Objective-C. There is not reason for this. For my configuration file it causes C++ files in my Xcode project to be formatted incorrectly and introduces syntax errors. I removed this flag and everything is perfect! :)

more config search path

I hope the config file for all user, not per user! So I hope it is not in ~.

and

I hope the config file can be under a dir, for example : ~/.uncrustify/.
Because I use git to update my config file, it will bad for git if the config file in root of user path.

Uncrusify on save

Would be very practical. I'll try to look into it if I have time!

Xcode 5.1 support (non beta)

I used this plugin every day and it saves me a lot of time. But after updating Xcode to 5.1 - plugin settings missed from Xcode Edit bar. I used 1.0.5 version & want to continue to using it.
Please add support for Xcode 5.1. Please!

Because of the error can not be formatted files.

Keep getting errors in those places where it is used: @() @{} @[]

Uncrustify Formatter error:
Parsing: MCSRPhoto.m as language OC
MCSRPhoto.m:62 Garbage in col 24: 40
MCSRPhoto.m:78 Garbage in col 50: 40

For God's sake do not cancel formatting! Just ignore this type of error.
In older versions worked well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.